[#PKCS8_pkey_get0] = PKCS8_pkey_get0 :mrdocs: Extract algorithm and private‐key octets from a PKCS#8 PrivateKeyInfo. == Synopsis Declared in `<openssl/x509.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int PKCS8_pkey_get0( xref:ASN1_OBJECT.adoc[ASN1_OBJECT] const** ppkalg, unsigned char const** pk, int* ppklen, xref:X509_ALGOR.adoc[X509_ALGOR] const** pa, xref:PKCS8_PRIV_KEY_INFO.adoc[PKCS8_PRIV_KEY_INFO] const* p8); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *ppkalg* | Receives the algorithm OID, or NULL to skip. | *pk* | Receives a pointer to the private‐key bit string octets, or NULL to skip. | *ppklen* | Receives the length of *`pk,` or NULL to skip. | *pa* | Receives the AlgorithmIdentifier, or NULL to skip. | *p8* | PKCS#8 structure to query. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#