[#PKCS12_pack_p7encdata_ex] = PKCS12_pack_p7encdata_ex :mrdocs: Pack safeBags into a PKCS#7 encrypted‐data ContentInfo. == Synopsis Declared in `<openssl/pkcs12.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:PKCS7.adoc[PKCS7]* PKCS12_pack_p7encdata_ex( int pbe_nid, char const* pass, int passlen, unsigned char* salt, int saltlen, int iter, xref:stack_st_PKCS12_SAFEBAG.adoc[stack_st_PKCS12_SAFEBAG]* bags, xref:OSSL_LIB_CTX.adoc[OSSL_LIB_CTX]* ctx, char const* propq); ---- == Return Value PKCS#7 encrypted‐data object, or NULL on error. == Parameters [cols="1,4"] |=== | Name| Description | *pbe_nid* | PBE or cipher NID for encryption. | *pass* | Passphrase for encryption. | *passlen* | Length of `pass,` or ‐1 to use strlen(). | *salt* | Salt for key derivation. | *saltlen* | Length of `salt` in bytes. | *iter* | Iteration count for key derivation. | *bags* | Stack of safeBags to encrypt. | *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]#