aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_pubkey.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-11-26 11:38:01 -0500
committerJack Lloyd <[email protected]>2016-11-26 11:38:01 -0500
commit345f0881bc44b7a8344ea943e96b1dad4a8d484b (patch)
treed7d30b2e13abe660713eafed3e034ebf1494e7f8 /src/tests/test_pubkey.cpp
parentd695dfadc0daf8290d344f82697d456fd011d153 (diff)
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.
Diffstat (limited to 'src/tests/test_pubkey.cpp')
-rw-r--r--src/tests/test_pubkey.cpp3
1 files changed, 3 insertions, 0 deletions
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<Test::Result> 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
{