]> git.ipfire.org Git - thirdparty/openssl.git/commit - include/crypto/evp.h
EVP_PKCS82PKEY: Create provided keys if possible
authorTomas Mraz <tomas@openssl.org>
Tue, 23 Mar 2021 15:40:53 +0000 (16:40 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 25 Mar 2021 14:24:00 +0000 (15:24 +0100)
commit4f0831b837e97504d4cfbfecfca069c527be4a2b
tree90411cdb7d183a26a30e84f5f5b94add560f7e39
parent468d9d556409a53da2c5d16961f9531dd10a6e1b
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)
crypto/asn1/d2i_pr.c
crypto/evp/evp_pkey.c
include/crypto/evp.h
test/endecode_test.c