[#CMS_RecipientInfo_encrypt] = CMS_RecipientInfo_encrypt :mrdocs: Encrypt the content‐encryption key into one CMS RecipientInfo. == Synopsis Declared in `<openssl/cms.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int CMS_RecipientInfo_encrypt( xref:CMS_ContentInfo.adoc[CMS_ContentInfo] const* cms, xref:CMS_RecipientInfo.adoc[CMS_RecipientInfo]* ri); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#