diff options
author | Jack Lloyd <[email protected]> | 2018-03-10 15:01:09 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-03-10 15:01:09 -0500 |
commit | afe4ae0f83b7207873afac760cb3c32ed40ce4c9 (patch) | |
tree | 93f65bd1ab32d3cf161888ccada926e633fd1e82 /src/tests/test_modes.cpp | |
parent | 920001cae022190bc86ec818ab4af0ac7513777c (diff) |
Minor tweaks for coverage
Diffstat (limited to 'src/tests/test_modes.cpp')
-rw-r--r-- | src/tests/test_modes.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tests/test_modes.cpp b/src/tests/test_modes.cpp index d707f4419..89b201873 100644 --- a/src/tests/test_modes.cpp +++ b/src/tests/test_modes.cpp @@ -78,6 +78,11 @@ class Cipher_Mode_Tests final : public Text_Based_Test 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()); + result.confirm("default nonce size is allowed", + enc->valid_nonce_length(enc->default_nonce_length())); + result.confirm("default nonce size is allowed", + dec->valid_nonce_length(dec->default_nonce_length())); + // Test that disallowed nonce sizes result in an exception const size_t large_nonce_size = 65000; result.test_eq("Large nonce not allowed", enc->valid_nonce_length(large_nonce_size), false); |