GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
EVP_PKCS82PKEY(3) FreeBSD Library Functions Manual EVP_PKCS82PKEY(3)

EVP_PKCS82PKEY, EVP_PKEY2PKCS8
convert between EVP_PKEY and PKCS#8 PrivateKeyInfo

#include <openssl/x509.h>

EVP_PKEY *
EVP_PKCS82PKEY(const PKCS8_PRIV_KEY_INFO *keyinfo);

PKCS8_PRIV_KEY_INFO *
EVP_PKEY2PKCS8(EVP_PKEY *pkey);

EVP_PKCS82PKEY() extracts the private key from a PKCS#8 PrivateKeyInfo structure.

EVP_PKEY2PKCS8() creates a PKCS#8 PrivateKeyInfo structure representing the private key contained in pkey.

Supported algorithms include DH, DSA, EC, GOST2001, and RSA. Application programs can add additional algorithms using EVP_PKEY_asn1_add0(3).

These functions return a newly allocated object or NULL if the algorithm indicated in keyinfo or pkey is unsupported or if memory allocation, decoding, or encoding fails.

EVP_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)

These functions first appeared in OpenSSL 0.9.3 and have been available since OpenBSD 2.6.
October 25, 2021 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.