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

Name

Description

p7

PKCS#7 EnvelopedData, SignedAndEnvelopedData, or EncryptedData object.

cipher

Symmetric cipher used to encrypt the content (must support ASN.1 parameters).

Created with MrDocs