diff options
author | Daniel Neus <[email protected]> | 2016-07-19 15:37:27 +0200 |
---|---|---|
committer | Daniel Neus <[email protected]> | 2016-07-20 14:12:48 +0200 |
commit | bc02dc731d1a02780e792b63c6c0a75b9e9b5ff4 (patch) | |
tree | aea43904453535e438538918f3a42c6d1425dabd /src/tests/tests.h | |
parent | 308c7d5eda678566edd26e9ab20edbe772f46363 (diff) |
add OctetString unit tests
and add the possibility to compare OctetStrings with the botan test-framework
Diffstat (limited to 'src/tests/tests.h')
-rw-r--r-- | src/tests/tests.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tests/tests.h b/src/tests/tests.h index 0016a4d90..b33b2837f 100644 --- a/src/tests/tests.h +++ b/src/tests/tests.h @@ -11,6 +11,7 @@ #include <botan/build.h> #include <botan/rng.h> #include <botan/hex.h> +#include <botan/symkey.h> #if defined(BOTAN_HAS_BIGINT) #include <botan/bigint.h> @@ -38,6 +39,8 @@ using Botan::byte; using Botan::BigInt; #endif +using Botan::OctetString; + class Test_Error : public Botan::Exception { public: @@ -175,6 +178,8 @@ class Test bool test_eq(const std::string& what, size_t produced, size_t expected); + bool test_eq(const std::string& what, OctetString produced, OctetString expected); + template<typename I1, typename I2> bool test_int_eq(I1 x, I2 y, const char* what) { |