PKCS12_item_decrypt_d2i_ex

Decrypt an ASN.1 octet string and decode the embedded object.

Synopsis

Declared in <openssl/pkcs12.h>

void*
PKCS12_item_decrypt_d2i_ex(
    X509_ALGOR const* algor,
    ASN1_ITEM const* it,
    char const* pass,
    int passlen,
    ASN1_OCTET_STRING const* oct,
    int zbuf,
    OSSL_LIB_CTX* libctx,
    char const* propq);

Return Value

Decoded object, or NULL on error.

Parameters

NameDescription
algorPBE algorithm identifier.
itASN.1 item descriptor for the embedded type.
passPassphrase for decryption.
passlenLength of pass, or -1 to use strlen().
octEncrypted octet string.
zbufIf nonzero, zero the decrypted buffer after use.
libctxLibrary context for algorithm fetching, or NULL for default.
propqProperty query for algorithm fetching, or NULL.