test/evp_test.c: allow generic AEAD ciphers to be tested.
Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
parent
bd989745b7
commit
eb85cb8632
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue