Add EVP_PKEY_public_check_quick.
authorShane Lontis <shane.lontis@oracle.com>
Wed, 17 Feb 2021 03:00:34 +0000 (13:00 +1000)
committerShane Lontis <shane.lontis@oracle.com>
Mon, 22 Feb 2021 03:31:31 +0000 (13:31 +1000)
commit4718326a46ad460fefc5cc240a8599af4b5993c7
treebe4beed6f52122d46ebba91baf9fb59ba586f918
parent681618cfc18b4f01f2c07e823308d30f6f47504b
Add EVP_PKEY_public_check_quick.

Adding the EVP_PKEY_param_check_quick() reminded me that there are also
partial checks for public keys as part of SP800-56A for FFC (DH named safe
prime groups) and ECC. The code was mainly already there and just needed
to be plumbed into the validate methods.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14206)
crypto/dh/dh_group_params.c
crypto/ec/ec_key.c
crypto/evp/pmeth_check.c
doc/man3/EVP_PKEY_check.pod
include/crypto/dh.h
include/crypto/ec.h
include/openssl/evp.h
providers/implementations/keymgmt/dh_kmgmt.c
providers/implementations/keymgmt/ec_kmgmt.c
util/libcrypto.num