Install a KEKRecipientInfo key on a CMS ContentInfo so CMS_decrypt can use it.
Synopsis
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);
Return Value
1 on success, or 0 on failure.
Parameters
Name |
Description |
cms |
Enveloped ContentInfo that contains a KEK recipient. |
key |
Symmetric key‐encryption key octets. |
keylen |
Length of |
id |
Optional key identifier matching the recipient's keyEncryptionKeyIdentifier, or NULL. |
idlen |
Length of |
Created with MrDocs