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

Name

Description

cms

Enveloped ContentInfo that owns ri; the CEK must already be available (for example after decrypt).

ri

RecipientInfo that receives the wrapped content‐encryption key.

Created with MrDocs