Decrypt CMS recipient key material using a private key, then store it for CMS_decrypt().
Declared in <openssl/cms.h>
int
CMS_decrypt_set1_pkey(
CMS_ContentInfo* cms,
EVP_PKEY* pk,
X509* cert);
1 on success, or 0 on failure.
| 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. |