Supply the password used to derive the KEK for a PasswordRecipientInfo.

Synopsis

Declared in <openssl/cms.h>

int
CMS_RecipientInfo_set0_password(
    CMS_RecipientInfo* ri,
    unsigned char* pass,
    ssize_t passlen);

Return Value

1 on success, or 0 on failure.

Parameters

Name

Description

ri

Recipient info of type CMS_RECIPINFO_PASS.

pass

Password bytes; ownership transfers to ri (may be cleared on free).

passlen

Length of pass in bytes, or ‐1 if NUL‐terminated.

Created with MrDocs