CMS_EnvelopedData_create_ex

Create an empty CMS EnvelopedData ContentInfo using a library context.

Synopsis

Declared in <openssl/cms.h>

CMS_ContentInfo*
CMS_EnvelopedData_create_ex(
    EVP_CIPHER const* cipher,
    OSSL_LIB_CTX* libctx,
    char const* propq);

Return Value

New EnvelopedData ContentInfo, or NULL on error.

Parameters

NameDescription
cipherContent-encryption cipher whose ASN.1 parameters will be encoded.
libctxLibrary context for algorithm fetches, or NULL for the default.
propqProperty query for provider selection, or NULL.