PKCS7_set_cipher

Set the content-encryption cipher on an enveloped or encrypted PKCS#7 structure.

Synopsis

Declared in <openssl/pkcs7.h>

int
PKCS7_set_cipher(
    PKCS7* p7,
    EVP_CIPHER const* cipher);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
p7PKCS#7 EnvelopedData, SignedAndEnvelopedData, or EncryptedData object.
cipherSymmetric cipher used to encrypt the content (must support ASN.1 parameters).