]> git.ipfire.org Git - thirdparty/openssl.git/commit
PROV: Add type specific PKCS#8 decoding to the DER->key decoders
authorRichard Levitte <levitte@openssl.org>
Thu, 18 Mar 2021 09:41:53 +0000 (10:41 +0100)
committerRichard Levitte <levitte@openssl.org>
Fri, 19 Mar 2021 15:46:39 +0000 (16:46 +0100)
commitcf333799979755dd46193b49c15db0afd262c6a0
tree77e5ab82979b1b8a9a64fcb2e0500af5361a57d0
parente0be34beee9ef8ebab49c51581f796e013600b77
PROV: Add type specific PKCS#8 decoding to the DER->key decoders

This required refactoring a number of functions from the diverse
EVP_PKEY_ASN1_METHOD implementations to become shared backend
functions.  It also meant modifying a few of them to return pointers
to our internal RSA / DSA/ DH / EC_KEY, ... structures instead of
manipulating an EVP_PKEY pointer directly, letting the caller do the
latter.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14314)
19 files changed:
crypto/dh/dh_ameth.c
crypto/dh/dh_backend.c
crypto/dsa/dsa_ameth.c
crypto/dsa/dsa_backend.c
crypto/ec/ec_ameth.c
crypto/ec/ec_backend.c
crypto/ec/ecx_backend.c
crypto/ec/ecx_meth.c
crypto/rsa/rsa_ameth.c
crypto/rsa/rsa_backend.c
crypto/rsa/rsa_lib.c
include/crypto/dh.h
include/crypto/dsa.h
include/crypto/ec.h
include/crypto/ecx.h
include/crypto/rsa.h
include/crypto/types.h
include/crypto/x509.h
providers/implementations/encode_decode/decode_der2key.c