CMS_decrypt_set1_password

Decrypt CMS PasswordRecipientInfo key material and store it for a later CMS_decrypt().

Synopsis

Declared in <openssl/cms.h>

int
CMS_decrypt_set1_password(
    CMS_ContentInfo* cms,
    unsigned char* pass,
    ssize_t passlen);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
cmsEnveloped ContentInfo containing a password recipient.
passPassword bytes used to derive the key-encryption key.
passlenLength of pass in octets, or a negative value if pass is a NUL-terminated string.