Implement pem_read_key directly through OSSL_DECODER
authorTomas Mraz <tomas@openssl.org>
Tue, 27 Apr 2021 14:01:13 +0000 (16:01 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 13 May 2021 11:30:07 +0000 (13:30 +0200)
commitb4c4a2c68817ea0b2df8012673fa4e0712681704
tree0e9ef2698c96e048dda681af0aadc9f7daac384a
parente9fe0f7e9df7e0909ca52a024b889e48616a29d9
Implement pem_read_key directly through OSSL_DECODER

Using OSSL_STORE is too heavy and breaks things.

There were also needed various fixes mainly for missing proper
handling of the SM2 keys in the OSSL_DECODER.

Fixes #14788

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15045)
crypto/ec/ec_asn1.c
crypto/ec/ec_key.c
crypto/pem/pem_pkey.c
crypto/x509/x_pubkey.c
providers/fips-sources.checksums
providers/fips.checksum
providers/implementations/keymgmt/ec_kmgmt.c
providers/implementations/keymgmt/rsa_kmgmt.c
test/evp_extra_test2.c
test/sslapitest.c