PROV: use EVP_CIPHER_CTX_set_params() rather than EVP_CIPHER_CTX_ctrl()
authorRichard Levitte <levitte@openssl.org>
Tue, 9 Mar 2021 17:23:39 +0000 (18:23 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 11 Mar 2021 16:21:59 +0000 (17:21 +0100)
commitc9d01f4186817612e8afa401951e0968aed83b2e
treedbab95c22bf5e07e0f96870ba17ee4e050134d96
parent6bbff162f1d72ed52d705c4c146cd3152ef4648c
PROV: use EVP_CIPHER_CTX_set_params() rather than EVP_CIPHER_CTX_ctrl()

This is in gmac_final(), where the cipher is known to be fetched.
It's more suitable to use OSSL_PARAMs than _ctrl functions, as the
latter are expected to become obsolete.

Fixes #14359

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/14484)
providers/implementations/macs/gmac_prov.c