aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test_aead.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-02-09 16:52:51 +0000
committerlloyd <[email protected]>2014-02-09 16:52:51 +0000
commit4f3b0ce8fccd879791d5a701102ee0737f3509b1 (patch)
tree37ab6f550154de465d2677fdab1cc1d96904fa5c /src/tests/test_aead.cpp
parent253aa701ffa654af3c880e1e1b4965fabf86be3b (diff)
More fixes for minified builds
Diffstat (limited to 'src/tests/test_aead.cpp')
-rw-r--r--src/tests/test_aead.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tests/test_aead.cpp b/src/tests/test_aead.cpp
index 8b46e9177..f716c0554 100644
--- a/src/tests/test_aead.cpp
+++ b/src/tests/test_aead.cpp
@@ -24,6 +24,9 @@ size_t aead_test(const std::string& algo,
std::unique_ptr<Cipher_Mode> enc(get_aead(algo, ENCRYPTION));
std::unique_ptr<Cipher_Mode> dec(get_aead(algo, DECRYPTION));
+ if(!enc || !dec)
+ throw std::runtime_error("Unknown AEAD " + algo);
+
enc->set_key(key);
dec->set_key(key);