提交 eb85cb86 编写于 作者: A Andy Polyakov

test/evp_test.c: allow generic AEAD ciphers to be tested.

Reviewed-by: NRichard Levitte <levitte@openssl.org>
上级 bd989745
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册