ENCODER PROV: Add encoders with EncryptedPrivateKeyInfo output
authorRichard Levitte <levitte@openssl.org>
Wed, 1 Sep 2021 20:18:45 +0000 (22:18 +0200)
committerRichard Levitte <levitte@openssl.org>
Sun, 5 Sep 2021 19:42:54 +0000 (21:42 +0200)
commit7e318b0a6985721dec87685cc8a0034dd3fc3205
tree17d9aab643583e6f984b0d50cff3bf303ea57c34
parent4bc33f53266225b6a431b8a94a7a6efb5aeee8f1
ENCODER PROV: Add encoders with EncryptedPrivateKeyInfo output

Since EncryptedPrivateKeyInfo is a recognised structure, it's
reasonable to think that someone might want to specify it.

To be noted is that if someone specifies the structure PrivateKeyInfo
but has also passed a passphrase callback, the result will still
become a EncryptedPrivateKeyInfo structure.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16466)

(cherry picked from commit 0195cdd28fde7d0897e368fdcd4e92509425faad)
providers/encoders.inc
providers/implementations/encode_decode/encode_key2any.c
providers/implementations/include/prov/implementations.h