summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2015-12-09 21:35:30 +0100
committerAndy Polyakov <appro@openssl.org>2015-12-10 12:00:46 +0100
commiteb85cb8632ad5d868a5634b3ce18846ae351c380 (patch)
treedac0c2aedf03259b5ad6016091dda379d8419ca4 /test
parentbd989745b7a4796dceff89d93b6b7ac1561c6227 (diff)
test/evp_test.c: allow generic AEAD ciphers to be tested.
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'test')
-rw-r--r--test/evp_test.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/evp_test.c b/test/evp_test.c
index 725af8a53a..ec2283a50f 100644
--- a/test/evp_test.c
+++ b/test/evp_test.c
@@ -774,6 +774,8 @@ static int cipher_test_init(struct evp_test *t, const char *alg)
|| EVP_CIPHER_mode(cipher) == EVP_CIPH_OCB_MODE
|| EVP_CIPHER_mode(cipher) == EVP_CIPH_CCM_MODE)
cdat->aead = EVP_CIPHER_mode(cipher);
+ else if (EVP_CIPHER_flags(cipher) & EVP_CIPH_FLAG_AEAD_CIPHER)
+ cdat->aead = -1;
else
cdat->aead = 0;