aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_aead.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/test_aead.cpp')
-rw-r--r--src/tests/test_aead.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/test_aead.cpp b/src/tests/test_aead.cpp
index efd59f6a8..13d6ee320 100644
--- a/src/tests/test_aead.cpp
+++ b/src/tests/test_aead.cpp
@@ -347,6 +347,10 @@ class AEAD_Tests final : public Text_Based_Test
result.test_eq("same provider", enc_provider, dec_provider);
+ // FFI currently requires this, so assure it is true for all modes
+ result.test_gte("enc buffer sizes ok", enc->update_granularity(), enc->minimum_final_size());
+ result.test_gte("dec buffer sizes ok", dec->update_granularity(), dec->minimum_final_size());
+
// test enc
result.merge(test_enc(key, nonce, input, expected, ad, algo));