PKCS7_ENCRYPT(3ssl) OpenSSL PKCS7_ENCRYPT(3ssl) PKCS7_encrypt_ex, PKCS7_encrypt - PKCS#7 envelopedData #include PKCS7 *PKCS7_encrypt_ex(STACK_OF(X509) *certs, BIO *in, const EVP_CIPHER *cipher, int flags, OSSL_LIB_CTX *libctx, const char *propq); PKCS7 *PKCS7_encrypt(STACK_OF(X509) *certs, BIO *in, const EVP_CIPHER *cipher, int flags); PKCS7_encrypt_ex() PKCS#7 envelopedData. certs . in . cipher . flags . libctx propq . RSA PKCS#7 envelopedData RSA RSA. EVP_des_ede3_cbc() (DES ) S/MIME . " " RC2 40 64 . EVP_rc2_40_cbc() EVP_rc2_64_cbc() . cipher ASN1 . " " envelopedData S/MIME S/MIME. S/MIME BIO PKCS7_encrypt(). flags. PKCS7_TEXT MIME text/plain . MIME ( S/MIME) PKCS7_BINARY . . PKCS7_BINARY PKCS7_TEXT. PKCS7_STREAM PKCS7 / : BIO in. PKCS7_STREAM PKCS7 PKCS7 . SMIME_write_PKCS7() i2d_PKCS7_bio_stream() PEM_write_bio_PKCS7_stream() . ASN1 BIO BIO_new_PKCS7(). PKCS7_encrypt() PKCS7_encrypt_ex() NULL libctx propq. PKCS7_encrypt_ex() PKCS7_encrypt() PKCS7 NULL . ERR_get_error(3). ERR_get_error(3), PKCS7_decrypt(3) PKCS7_encrypt_ex() OpenSSL 3.0. PKCS7_STREAM OpenSSL 1.0.0. 2002-2020 OpenSSL. . Apache 2.0 ( ""). . LICENSE . 3 . . : . 3.6.2 7 2026 PKCS7_ENCRYPT(3ssl)