CMS_RecipientInfo_encrypt

Encrypt the content-encryption key into one CMS RecipientInfo.

Synopsis

Declared in <openssl/cms.h>

int
CMS_RecipientInfo_encrypt(
    CMS_ContentInfo const* cms,
    CMS_RecipientInfo* ri);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
cmsEnveloped ContentInfo that owns ri; the CEK must already be available (for example after decrypt).
riRecipientInfo that receives the wrapped content-encryption key.