openssl/include/crypto
Tomas Mraz 4f0831b837 EVP_PKCS82PKEY: Create provided keys if possible
Use OSSL_DECODER to decode the PKCS8 data to create provided keys.

If that fails fallback to the legacy implementation.

Fixes #14302

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14659)
2021-03-25 15:24:00 +01:00
..
__DECC_INCLUDE_EPILOGUE.H Reorganize private crypto header files 2019-09-28 20:26:34 +02:00
__DECC_INCLUDE_PROLOGUE.H Reorganize private crypto header files 2019-09-28 20:26:34 +02:00
aes_platform.h Update copyright year 2021-02-18 15:05:17 +00:00
aria.h Add ossl_aria symbols 2021-03-18 17:52:37 +10:00
asn1_dsa.h Add ossl_encode symbols 2021-03-18 17:52:37 +10:00
asn1.h Add ossl_asn1 symbols 2021-03-18 17:52:37 +10:00
asn1err.h Update copyright year 2020-11-26 14:18:57 +00:00
async.h Update copyright year 2021-02-18 15:05:17 +00:00
asyncerr.h Update copyright year 2020-11-26 14:18:57 +00:00
bioerr.h Update copyright year 2020-11-26 14:18:57 +00:00
bn_conf.h.in Update copyright year 2021-02-18 15:05:17 +00:00
bn_dh.h Update copyright year 2021-03-11 13:27:36 +00:00
bn_srp.h Add ossl_bn_group symbols 2021-03-18 17:52:37 +10:00
bn.h Fix external symbols for bn 2021-02-26 10:32:22 +10:00
bnerr.h Update copyright year 2020-11-26 14:18:57 +00:00
buffererr.h Update copyright year 2020-11-26 14:18:57 +00:00
chacha.h Update copyright year 2021-02-18 15:05:17 +00:00
cmll_platform.h Update copyright year 2021-02-18 15:05:17 +00:00
cmperr.h Update copyright year 2020-11-26 14:18:57 +00:00
cms.h TS and CMS CAdES-BES: Refactor check_signing_certs() funcs into common ESS func 2021-03-18 07:03:53 +01:00
cmserr.h Update copyright year 2020-11-26 14:18:57 +00:00
comperr.h Update copyright year 2020-11-26 14:18:57 +00:00
conferr.h Update copyright year 2020-11-26 14:18:57 +00:00
crmferr.h Update copyright year 2020-11-26 14:18:57 +00:00
cryptlib.h Update copyright year 2021-02-18 15:05:17 +00:00
cryptoerr.h openssl_hexstr2buf_sep(): Prevent misleading 'malloc failure' errors on short input 2020-12-10 15:19:55 +01:00
cterr.h Update copyright year 2020-11-26 14:18:57 +00:00
ctype.h Add ossl_asn1 symbols 2021-03-18 17:52:37 +10:00
decoder.h Update copyright year 2021-02-18 15:05:17 +00:00
decodererr.h Update copyright year 2020-11-26 14:18:57 +00:00
des_platform.h Update copyright year 2021-02-18 15:05:17 +00:00
dh.h PROV: Add type specific PKCS#8 decoding to the DER->key decoders 2021-03-19 16:46:39 +01:00
dherr.h Update copyright year 2020-11-26 14:18:57 +00:00
dsa.h PROV: Add type specific PKCS#8 decoding to the DER->key decoders 2021-03-19 16:46:39 +01:00
dsaerr.h Update copyright year 2020-11-26 14:18:57 +00:00
dso_conf.h.in Update copyright year 2021-02-18 15:05:17 +00:00
ec.h PROV: Add type specific PKCS#8 decoding to the DER->key decoders 2021-03-19 16:46:39 +01:00
ecerr.h Update copyright year 2020-11-26 14:18:57 +00:00
ecx.h PROV: Add type specific PKCS#8 decoding to the DER->key decoders 2021-03-19 16:46:39 +01:00
encoder.h Rename OPENSSL_CTX prefix to OSSL_LIB_CTX 2020-10-15 11:59:53 +01:00
encodererr.h Update copyright year 2020-11-26 14:18:57 +00:00
engine.h Reorganize private crypto header files 2019-09-28 20:26:34 +02:00
engineerr.h Update copyright year 2020-11-26 14:18:57 +00:00
err.h Update copyright year 2021-02-18 15:05:17 +00:00
ess.h TS and CMS CAdES-BES: Refactor check_signing_certs() funcs into common ESS func 2021-03-18 07:03:53 +01:00
esserr.h TS and CMS CAdES-BES: Refactor check_signing_certs() funcs into common ESS func 2021-03-18 07:03:53 +01:00
evp.h EVP_PKCS82PKEY: Create provided keys if possible 2021-03-25 15:24:00 +01:00
evperr.h Don't overflow the output length in EVP_CipherUpdate calls 2021-02-16 11:40:12 +00:00
httperr.h Update copyright year 2020-11-26 14:18:57 +00:00
lhash.h Add ossl_lhash symbols 2021-03-18 17:52:38 +10:00
md32_common.h Reorganize private crypto header files 2019-09-28 20:26:34 +02:00
modes.h Update copyright year 2021-03-11 13:27:36 +00:00
objects.h Add ossl_ conf symbols 2021-03-18 17:52:37 +10:00
objectserr.h Update copyright year 2020-11-26 14:18:57 +00:00
ocsperr.h Update copyright year 2020-11-26 14:18:57 +00:00
pem.h PROV: Add type specific MSBLOB and PVK decoding for the MS->key decoders 2021-03-19 16:46:39 +01:00
pemerr.h PROV: Add type specific MSBLOB and PVK decoding for the MS->key decoders 2021-03-19 16:46:39 +01:00
pkcs7.h Fix external symbols for pkcs7. 2021-02-22 09:16:37 +10:00
pkcs7err.h Update copyright year 2020-11-26 14:18:57 +00:00
pkcs12err.h Update copyright year 2020-11-26 14:18:57 +00:00
poly1305.h Update copyright year 2021-02-18 15:05:17 +00:00
punycode.h Update copyright year 2021-02-18 15:05:17 +00:00
rand_pool.h Add ossl_rand symbols 2021-03-18 17:52:37 +10:00
rand.h Add ossl_rand symbols 2021-03-18 17:52:37 +10:00
randerr.h Update copyright year 2020-11-26 14:18:57 +00:00
rsa.h PROV: Add type specific PKCS#8 decoding to the DER->key decoders 2021-03-19 16:46:39 +01:00
rsaerr.h Update copyright year 2020-11-26 14:18:57 +00:00
security_bits.h Fix misc external ossl_ symbols. 2021-03-18 17:52:37 +10:00
sha.h Update copyright year 2021-02-18 15:05:17 +00:00
siphash.h Fix a TODO(3.0) in the siphash code 2021-03-17 10:16:21 +10:00
siv.h Add ossl_siv symbols 2021-03-18 17:52:37 +10:00
sm2.h Fix external symbols related to ec & sm2 keys 2021-02-26 10:53:01 +10:00
sm2err.h ERR: Rebuild all generated error headers and source files 2021-02-05 14:09:16 +01:00
sm4.h Add ossl_ symbols for sm3 and sm4 2021-03-18 17:52:37 +10:00
sparse_array.h Add ossl_sa symbols 2021-03-18 17:52:37 +10:00
store.h Update copyright year 2021-02-18 15:05:17 +00:00
storeerr.h Update copyright year 2020-11-26 14:18:57 +00:00
tserr.h Update copyright year 2020-11-26 14:18:57 +00:00
types.h PROV: Add type specific PKCS#8 decoding to the DER->key decoders 2021-03-19 16:46:39 +01:00
uierr.h Update copyright year 2020-11-26 14:18:57 +00:00
x509.h Fix usages of const EVP_MD. 2021-03-22 15:40:04 +01:00
x509err.h Update copyright year 2020-11-26 14:18:57 +00:00
x509v3err.h Update copyright year 2020-11-26 14:18:57 +00:00