diff options
Diffstat (limited to 'src/codec/base64/base64.cpp')
-rw-r--r-- | src/codec/base64/base64.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/codec/base64/base64.cpp b/src/codec/base64/base64.cpp index 96a686e38..d6c5ec7c0 100644 --- a/src/codec/base64/base64.cpp +++ b/src/codec/base64/base64.cpp @@ -8,11 +8,9 @@ #include <botan/base64.h> #include <botan/mem_ops.h> #include <botan/internal/rounding.h> +#include <botan/internal/assert.h> #include <stdexcept> -#include <stdio.h> -#include <assert.h> - namespace Botan { namespace { @@ -88,8 +86,8 @@ std::string base64_encode(const byte input[], input, input_length, consumed, true); - assert(consumed == input_length); - assert(produced == output.size()); + BOTAN_ASSERT_EQUAL(consumed, input_length, "Did not consume all input"); + BOTAN_ASSERT_EQUAL(produced, output.size(), "Did not produce right amount"); return output; } |