|
NAMEEVP_PKCS82PKEY , EVP_PKEY2PKCS8
—
convert between EVP_PKEY and PKCS#8 PrivateKeyInfo
SYNOPSIS#include <openssl/x509.h>
EVP_PKEY *
PKCS8_PRIV_KEY_INFO *
DESCRIPTIONEVP_PKCS82PKEY () extracts the private key from a PKCS#8
PrivateKeyInfo structure.
Supported algorithms include DH, DSA, EC, GOST2001, and RSA. Application programs can add additional algorithms using EVP_PKEY_asn1_add0(3). RETURN VALUESThese functions return a newly allocated object orNULL
if the algorithm indicated in keyinfo or
pkey is unsupported or if memory allocation, decoding,
or encoding fails.
SEE ALSOEVP_PKEY_asn1_add0(3), EVP_PKEY_base_id(3), EVP_PKEY_new(3), PKCS8_pkey_set0(3), PKCS8_PRIV_KEY_INFO_new(3), X509_ALGOR_get0(3)HISTORYThese functions first appeared in OpenSSL 0.9.3 and have been available since OpenBSD 2.6.
Visit the GSP FreeBSD Man Page Interface. |