CMS_RecipientInfo_kari_decrypt

Unwrap the content-encryption key from one KARI RecipientEncryptedKey into cms.

Synopsis

Declared in <openssl/cms.h>

int
CMS_RecipientInfo_kari_decrypt(
    CMS_ContentInfo* cms,
    CMS_RecipientInfo* ri,
    CMS_RecipientEncryptedKey* rek);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
cmsEnveloped ContentInfo that receives the decrypted CEK.
riKey-agreement RecipientInfo with private key and peer material already set.
rekRecipientEncryptedKey entry that holds the wrapped CEK for this recipient.