No need to call EVP_CIPHER_CTX_init after EVP_CIPHER_CTX_new
authorMatt Caswell <matt@openssl.org>
Thu, 10 Mar 2016 09:18:50 +0000 (09:18 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 10 Mar 2016 09:18:50 +0000 (09:18 +0000)
The afalgtest was unnecessarily initing an EVP_CIPHER_CTX. It is not
needed and is deprecated.

Reviewed-by: Rich Salz <rsalz@openssl.org>
test/afalgtest.c

index c15e111545b3f7cbec61f3980408d7eb3462f9cf..e1327445e2abde6ee68b1b6269f21aed04ceb429 100644 (file)
@@ -82,7 +82,6 @@ static int test_afalg_aes_128_cbc(ENGINE *e)
         fprintf(stderr, "%s() failed to allocate ctx\n", __func__);
         return 0;
     }
-    EVP_CIPHER_CTX_init(ctx);
     RAND_bytes(in, BUFFER_SIZE);
 
     if (       !EVP_CipherInit_ex(ctx, cipher, e, key, iv, 1)