Decrypt CMS EnvelopedData/AuthEnvelopedData recipient key material using a private key and optional peer certificate.
Synopsis
Declared in <openssl/cms.h>
int
CMS_decrypt_set1_pkey_and_peer(
CMS_ContentInfo* cms,
EVP_PKEY* pk,
X509* cert,
X509* peer);
Return Value
1 on success, or 0 on failure.
Parameters
Name |
Description |
cms |
CMS ContentInfo to decrypt; on success stores |
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. |
peer |
Optional originator certificate for key‐agreement recipients, or NULL. |
Created with MrDocs