Decrypt CMS PasswordRecipientInfo key material and store it for a later CMS_decrypt().
Declared in <openssl/cms.h>
int
CMS_decrypt_set1_password(
CMS_ContentInfo* cms,
unsigned char* pass,
ssize_t passlen);
1 on success, or 0 on failure.
| Name | Description |
|---|---|
| cms | Enveloped ContentInfo containing a password recipient. |
| pass | Password bytes used to derive the key-encryption key. |
| passlen | Length of pass in octets, or a negative value if pass is a NUL-terminated string. |