Unwrap the content-encryption key from one KARI RecipientEncryptedKey into cms.
Declared in <openssl/cms.h>
int
CMS_RecipientInfo_kari_decrypt(
CMS_ContentInfo* cms,
CMS_RecipientInfo* ri,
CMS_RecipientEncryptedKey* rek);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| cms | Enveloped ContentInfo that receives the decrypted CEK. |
| ri | Key-agreement RecipientInfo with private key and peer material already set. |
| rek | RecipientEncryptedKey entry that holds the wrapped CEK for this recipient. |