diff options
author | Jack Lloyd <[email protected]> | 2017-12-29 10:55:12 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-12-29 10:55:12 -0500 |
commit | 133237c08df7f679091a99c529fe6b97c6692c78 (patch) | |
tree | 037988f1e39aba37ebaba36f998ff74929183741 /src | |
parent | dfd25890cdd7c3c0148cd8101cab85539d87e475 (diff) |
Test AEAD provider strings
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/test_aead.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tests/test_aead.cpp b/src/tests/test_aead.cpp index 7dc64e400..efd59f6a8 100644 --- a/src/tests/test_aead.cpp +++ b/src/tests/test_aead.cpp @@ -340,6 +340,13 @@ class AEAD_Tests final : public Text_Based_Test result.test_eq("Encryption algo is an authenticated mode", enc->authenticated(), true); result.test_eq("Decryption algo is an authenticated mode", dec->authenticated(), true); + const std::string enc_provider = enc->provider(); + result.test_is_nonempty("enc provider", enc_provider); + const std::string dec_provider = enc->provider(); + result.test_is_nonempty("dec provider", dec_provider); + + result.test_eq("same provider", enc_provider, dec_provider); + // test enc result.merge(test_enc(key, nonce, input, expected, ad, algo)); |