]> git.ipfire.org Git - thirdparty/openssl.git/commit
Limit RSA-OAEP related functions to RSA keys only
authorslontis <shane.lontis@oracle.com>
Thu, 16 Feb 2023 23:54:58 +0000 (09:54 +1000)
committerTomas Mraz <tomas@openssl.org>
Fri, 29 Dec 2023 09:39:42 +0000 (10:39 +0100)
commit0c3eb31b55d3c1544e4e044c2e3c939655bac93d
tree6e3fc35a1e563d856f6be3a8f6f3ac313c3ce2c6
parentd32dd65053431ee744d213b336b9a03a035807e6
Limit RSA-OAEP related functions to RSA keys only

Make EVP_PKEY_CTX_set_rsa_oaep_md() and
EVP_PKEY_CTX_get_rsa_oaep_md_name() only work for RSA keys.

Since these calls use "digest" as a OSSL_PARAM, they should not
work for other key types.

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20319)
crypto/rsa/rsa_lib.c