Encode an ASN.1 object and encrypt the result.

Synopsis

Declared in <openssl/pkcs12.h>

ASN1_OCTET_STRING*
PKCS12_item_i2d_encrypt(
    X509_ALGOR* algor,
    ASN1_ITEM const* it,
    char const* pass,
    int passlen,
    void* obj,
    int zbuf);

Return Value

Encrypted data as an ASN.1 octet string, or NULL on error.

Parameters

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.

Created with MrDocs