[#PKCS12_item_i2d_encrypt_ex] = PKCS12_item_i2d_encrypt_ex :mrdocs: Encode an ASN.1 object and encrypt the result using a library context. == Synopsis Declared in `<openssl/pkcs12.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:ASN1_OCTET_STRING.adoc[ASN1_OCTET_STRING]* PKCS12_item_i2d_encrypt_ex( xref:X509_ALGOR.adoc[X509_ALGOR]* algor, xref:ASN1_ITEM.adoc[ASN1_ITEM] const* it, char const* pass, int passlen, void* obj, int zbuf, xref:OSSL_LIB_CTX.adoc[OSSL_LIB_CTX]* ctx, char const* propq); ---- == Return Value Encrypted data as an ASN.1 octet string, or NULL on error. == Parameters [cols="1,4"] |=== | Name| Description | *algor* | PBE algorithm identifier. | *it* | ASN.1 item descriptor for `obj.` | *pass* | Passphrase for encryption. | *passlen* | Length of `pass,` or ‐1 to use strlen(). | *obj* | Object to encode and encrypt. | *zbuf* | If nonzero, zero the plaintext encoding buffer after encryption. | *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]#