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

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.

Created with MrDocs