EVP_PKCS82PKEY_ex

Convert PKCS#8 private key info into an EVP_PKEY using a library context.

Synopsis

Declared in <openssl/x509.h>

EVP_PKEY*
EVP_PKCS82PKEY_ex(
    PKCS8_PRIV_KEY_INFO const* p8,
    OSSL_LIB_CTX* libctx,
    char const* propq);

Return Value

New EVP_PKEY, or NULL on error.

Parameters

NameDescription
p8PKCS#8 PrivateKeyInfo structure to decode.
libctxLibrary context for algorithm fetches, or NULL for the default.
propqProperty query for algorithm fetches, or NULL.