Encrypt the content-encryption key into one CMS RecipientInfo.
Declared in <openssl/cms.h>
int
CMS_RecipientInfo_encrypt(
CMS_ContentInfo const* cms,
CMS_RecipientInfo* ri);
1 on success, or 0 on failure.
| 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. |