diff options
author | Jack Lloyd <[email protected]> | 2016-12-22 19:23:02 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-12-22 19:23:02 -0500 |
commit | 3bd0ea1d3425014667daab3d23d549bcacb46f0a (patch) | |
tree | 672d83f63aeafc439fb3bd3c0fb16b760a77779b /src/tests | |
parent | 292c44fe729f494d1abdde5f5f47a0ccbb32976c (diff) |
Add tests for AEAD name and nonce size APIs
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/test_aead.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tests/test_aead.cpp b/src/tests/test_aead.cpp index 306589b93..c804949bb 100644 --- a/src/tests/test_aead.cpp +++ b/src/tests/test_aead.cpp @@ -32,6 +32,9 @@ class AEAD_Tests : public Text_Based_Test result.test_eq("AEAD encrypt output_length is correct", enc->output_length(input.size()), expected.size()); + result.confirm("AEAD name is not empty", !enc->name().empty()); + result.confirm("AEAD default nonce size is accepted", enc->valid_nonce_length(enc->default_nonce_length())); + // First some tests for reset() to make sure it resets what we need it to // set garbage values enc->set_key(mutate_vec(key)); |