From: Richard Levitte Date: Wed, 12 Dec 2018 10:22:52 +0000 (+0100) Subject: test/evp_test.c: use EVP_DecryptUpdate when decrypting, even for AAD X-Git-Tag: OpenSSL_1_0_2r~10 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fff469b269d8309377291ff86767314d7489fd84;p=oweals%2Fopenssl.git 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) --- 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);