[#CMS_decrypt_set1_pkey] = CMS_decrypt_set1_pkey :mrdocs: Decrypt CMS recipient key material using a private key, then store it for CMS_decrypt(). == Synopsis Declared in `<openssl/cms.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int CMS_decrypt_set1_pkey( xref:CMS_ContentInfo.adoc[CMS_ContentInfo]* cms, xref:EVP_PKEY.adoc[EVP_PKEY]* pk, xref:X509.adoc[X509]* cert); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *cms* | CMS ContentInfo to decrypt; on success stores `pk` for a later CMS_decrypt() with NULL key arguments. | *pk* | Recipient private key used to unwrap the content‐encryption key. | *cert* | Recipient certificate used to locate the matching RecipientInfo; may be NULL to try all recipients. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#