Adapt the provider AES for more use of OSSL_PARAM
authorRichard Levitte <levitte@openssl.org>
Tue, 9 Jul 2019 10:03:00 +0000 (12:03 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 11 Jul 2019 05:27:02 +0000 (07:27 +0200)
commit06c8331c51797f43881e5262b4c114aacc6d0ca0
treea48dd24b236d0e6d781fbd081e3ec88c1468e052
parent13273237a65d46186b6bea0b51aec90670d4598a
Adapt the provider AES for more use of OSSL_PARAM

The cipher context IV was a bit interesting.  EVP_CIPHER_CTX_iv()
returns a pointer to the live IV, while EVP_CIPHER_CTX_ctrl() with the
type EVP_CTRL_GET_IV gets a copy of the live IV.  To support both, we
support getting it with both the OSSL_PARAM_OCTET_STRING and
OSSL_PARAM_OCTET_PTR datatypes.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/9328)
providers/common/ciphers/aes.c