[#PKCS8_set0_pbe_ex] = PKCS8_set0_pbe_ex :mrdocs: Encrypt PKCS#8 private key info using a pre‐built PBE algorithm. == Synopsis Declared in `<openssl/pkcs12.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:X509_SIG.adoc[X509_SIG]* PKCS8_set0_pbe_ex( char const* pass, int passlen, xref:PKCS8_PRIV_KEY_INFO.adoc[PKCS8_PRIV_KEY_INFO]* p8inf, xref:X509_ALGOR.adoc[X509_ALGOR]* pbe, xref:OSSL_LIB_CTX.adoc[OSSL_LIB_CTX]* ctx, char const* propq); ---- == Return Value Encrypted key in an X509_SIG, or NULL on error. == Parameters [cols="1,4"] |=== | Name| Description | *pass* | Passphrase for encryption. | *passlen* | Length of `pass,` or ‐1 to use strlen(). | *p8inf* | Private key info to encrypt. | *pbe* | PBE algorithm parameters. | *ctx* | Library context for algorithm fetching, or NULL for default. | *propq* | Property query for algorithm fetching, or NULL. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#