From fff469b269d8309377291ff86767314d7489fd84 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Wed, 12 Dec 2018 11:22:52 +0100 Subject: test/evp_test.c: use EVP_DecryptUpdate when decrypting, even for AAD Reviewed-by: Matthias St. Pierre (Merged from https://github.com/openssl/openssl/pull/7856) --- crypto/evp/evp_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto') diff --git a/crypto/evp/evp_test.c b/crypto/evp/evp_test.c index 97a2083027..059cd49c68 100755 --- a/crypto/evp/evp_test.c +++ b/crypto/evp/evp_test.c @@ -327,7 +327,7 @@ static void test1(const EVP_CIPHER *c, const unsigned char *key, int kn, ERR_print_errors_fp(stderr); test1_exit(12); } - if (an && !EVP_EncryptUpdate(&ctx, NULL, &outl, aad, an)) { + if (an && !EVP_DecryptUpdate(&ctx, NULL, &outl, aad, an)) { fprintf(stderr, "AAD set failed\n"); ERR_print_errors_fp(stderr); test1_exit(13); -- cgit v1.2.3