]> git.ipfire.org Git - thirdparty/openssl.git/commit - test/evp_extra_test.c
Ensure that ECX keys pass EVP_PKEY_param_check()
authorMatt Caswell <matt@openssl.org>
Tue, 9 Mar 2021 17:07:48 +0000 (17:07 +0000)
committerMatt Caswell <matt@openssl.org>
Mon, 15 Mar 2021 15:51:26 +0000 (15:51 +0000)
commit2cf8bb46fc3e0e2aaead764d333c6e216f028ef3
treee769525123b367abfeb520e7ead3c2c9e1a050a6
parent2db5834c43dcc2a04ccf4cf98f412d4d3474731e
Ensure that ECX keys pass EVP_PKEY_param_check()

RSA keys have no parameters and pass EVP_PKEY_param_check(). Previously,
ECX keys had no parammeters and failed EVP_PKEY_param_check(). We should
be consistent. It makes more sense to always pass, and therefore this
commit implements that behaviour.

Fixes #14482

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/14485)
providers/implementations/keymgmt/ecx_kmgmt.c
providers/implementations/keymgmt/rsa_kmgmt.c
test/evp_extra_test.c