Create a PKCS#7 envelopedData encrypting in for each recipient in certs.

Synopsis

Declared in <openssl/pkcs7.h>

PKCS7*
PKCS7_encrypt_ex(
    stack_st_X509* certs,
    BIO* in,
    EVP_CIPHER const* cipher,
    int flags,
    OSSL_LIB_CTX* libctx,
    char const* propq);

Return Value

New PKCS7 envelopedData object, or NULL on error.

Parameters

Name

Description

certs

Recipient certificates whose public keys encrypt the content‐encryption key.

in

BIO supplying the plaintext content.

cipher

Content‐encryption cipher (for example AES‐256‐CBC).

flags

PKCS7_* encryption flags.

libctx

Library context for algorithm fetches, or NULL for the default.

propq

Property query for algorithm fetches, or NULL.

Created with MrDocs