Install a KEKRecipientInfo key on a CMS ContentInfo so CMS_decrypt can use it.
Declared in <openssl/cms.h>
int
CMS_decrypt_set1_key(
CMS_ContentInfo* cms,
unsigned char* key,
size_t keylen,
unsigned char const* id,
size_t idlen);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| cms | Enveloped ContentInfo that contains a KEK recipient. |
| key | Symmetric key-encryption key octets. |
| keylen | Length of key in bytes. |
| id | Optional key identifier matching the recipient's keyEncryptionKeyIdentifier, or NULL. |
| idlen | Length of id in bytes when id is non-NULL. |