Commit 0f1d814c authored by Matt Caswell's avatar Matt Caswell
Browse files

No need to call EVP_CIPHER_CTX_init after EVP_CIPHER_CTX_new



The afalgtest was unnecessarily initing an EVP_CIPHER_CTX. It is not
needed and is deprecated.

Reviewed-by: default avatarRich Salz <rsalz@openssl.org>
parent d4605727
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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)