diff options
Diffstat (limited to 'src/tests/test_aead.cpp')
-rw-r--r-- | src/tests/test_aead.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/test_aead.cpp b/src/tests/test_aead.cpp index 24352a536..ed94d75ba 100644 --- a/src/tests/test_aead.cpp +++ b/src/tests/test_aead.cpp @@ -32,6 +32,8 @@ class AEAD_Tests : public Text_Based_Test std::unique_ptr<Botan::AEAD_Mode> enc(Botan::get_aead(algo, Botan::ENCRYPTION)); + result.test_eq("AEAD encrypt output_length is correct", enc->output_length(input.size()), expected.size()); + // First some tests for reset() to make sure it resets what we need it to // set garbage values enc->set_key(mutate_vec(key)); @@ -132,6 +134,8 @@ class AEAD_Tests : public Text_Based_Test std::unique_ptr<Botan::AEAD_Mode> dec(Botan::get_aead(algo, Botan::DECRYPTION)); + result.test_eq("AEAD decrypt output_length is correct", dec->output_length(input.size()), expected.size()); + // First some tests for reset() to make sure it resets what we need it to // set garbage values dec->set_key(mutate_vec(key)); |