![]() |
![]()
| ![]() |
![]()
NAME
SYNOPSIS
EVP_PKEY *
EVP_PKEY *
int
int
int
int
DESCRIPTIONThe PKCS#8 functions encode and decode private keys in PKCS#8 format using both PKCS#5 v1.5 and PKCS#5 v2.0 password based encryption algorithms. Other than the use of DER as opposed to PEM these functions are identical to the corresponding functions described in PEM_read_PrivateKey(3). These functions are currently the only way to store encrypted private keys using DER format. Currently all the functions use BIO or FILE pointers. There are no functions which work directly on memory, though this can be readily worked around by converting the buffers to memory BIOs; see BIO_s_mem(3) for details. RETURN VALUES
SEE ALSOd2i_X509_SIG(3), PEM_write_PKCS8PrivateKey(3), PKCS8_PRIV_KEY_INFO_new(3) HISTORYThese functions first appeared in OpenSSL 0.9.5 and have been available since OpenBSD 2.7. CAVEATSDo not confuse these functions with i2d_PKCS8PrivateKeyInfo_bio(3) and i2d_PKCS8PrivateKeyInfo_fp(3), which write out private keys in unencrypted DER format.
|