EVP: Adapt KEYEXCH, SIGNATURE and ASYM_CIPHER to handle key types better
authorRichard Levitte <levitte@openssl.org>
Wed, 18 Dec 2019 12:24:27 +0000 (13:24 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 9 Jan 2020 14:01:28 +0000 (15:01 +0100)
commitf23bc0b770efd229e27519786d9f28da56752d0a
tree9ed18bbd3e8a3cc97c6a78a387fc1f7c585c78cd
parente62a45b60e3166d995eb83840f437debf575c328
EVP: Adapt KEYEXCH, SIGNATURE and ASYM_CIPHER to handle key types better

The adaptation is to handle the case when key types and operations
that use these keys have different names.  For example, EC keys can be
used for ECDSA and ECDH.

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10647)
crypto/evp/exchange.c
crypto/evp/m_sigver.c
crypto/evp/pmeth_fn.c
crypto/evp/pmeth_gn.c
crypto/evp/pmeth_lib.c
doc/man3/EVP_PKEY_CTX_new.pod
include/crypto/evp.h