From 345f0881bc44b7a8344ea943e96b1dad4a8d484b Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sat, 26 Nov 2016 11:38:01 -0500 Subject: Add test for various functions previously missed (T::clone, PBKDF::name, AEAD::output_length) Fix a bug in CCM, GCM, and OCB decryption which caused `output_length(tag_size())` to fail even though empty plaintexts are certainly defined for all three modes. --- src/tests/test_pubkey.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/tests/test_pubkey.cpp') diff --git a/src/tests/test_pubkey.cpp b/src/tests/test_pubkey.cpp index 654021805..c2c1bb256 100644 --- a/src/tests/test_pubkey.cpp +++ b/src/tests/test_pubkey.cpp @@ -373,6 +373,9 @@ std::vector PK_Key_Generation_Test::run() result.confirm("Key passes self tests", key.check_key(Test::rng(), true)); + result.test_gte("Key has reasonable estimated strength (lower)", key.estimated_strength(), 64); + result.test_lt("Key has reasonable estimated strength (upper)", key.estimated_strength(), 512); + // Test PEM public key round trips OK try { -- cgit v1.2.3