[#CMS_decrypt_set1_key] = CMS_decrypt_set1_key :mrdocs: Install a KEKRecipientInfo key on a CMS ContentInfo so CMS_decrypt can use it. == Synopsis Declared in `<openssl/cms.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int CMS_decrypt_set1_key( xref:CMS_ContentInfo.adoc[CMS_ContentInfo]* cms, unsigned char* key, size_t keylen, unsigned char const* id, size_t idlen); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *cms* | Enveloped ContentInfo that contains a KEK recipient. | *key* | Symmetric key‐encryption key octets. | *keylen* | Length of `key` in bytes. | *id* | Optional key identifier matching the recipient's keyEncryptionKeyIdentifier, or NULL. | *idlen* | Length of `id` in bytes when `id` is non‐NULL. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#