CMS_DECRYPT(3ssl) OpenSSL CMS_DECRYPT(3ssl) CMS_decrypt, CMS_decrypt_set1_pkey_and_peer, CMS_decrypt_set1_pkey, CMS_decrypt_set1_password - CMS envelopedData #include int CMS_decrypt(CMS_ContentInfo *cms, EVP_PKEY *pkey, X509 *cert, BIO *dcont, BIO *out, unsigned int flags); int CMS_decrypt_set1_pkey_and_peer(CMS_ContentInfo *cms, EVP_PKEY *pk, X509 *cert, X509 *peer); int CMS_decrypt_set1_pkey(CMS_ContentInfo *cms, EVP_PKEY *pk, X509 *cert); int CMS_decrypt_set1_password(CMS_ContentInfo *cms, unsigned char *pass, ossl_ssize_t passlen); CMS_decrypt() CMS EnvelopedData AuthEnvelopedData. CMS_decrypt_set1_pkey() pkey pkey NULL. cert - . out BIO flags . pkey NULL ( CMS_decrypt_set1_pkey() CMS_decrypt_set1_password()) cert dcont out NULL . dcont . NULL. CMS_decrypt_set1_pkey_and_peer() CMS_ContentInfo cms pkey cert NULL () peer. cms pkey "CMS_decrypt(cms, NULL, NULL, dcont, out, flags)". cms. CMS_decrypt_set1_pkey() CMS_decrypt_set1_pkey_and_peer() peer NULL. CMS_decrypt_set1_password() CMS_ContentInfo cms pass passlen. cms "CMS_decrypt(cms, NULL, NULL, dcont, out, flags)". cms. ( ) CMS. cert NULL . . MMA ( Bleichenbacher PKCS #1 v1.5 RSA) . : ( ) . CMS_decrypt() . CMS_DEBUG_DECRYPT . . ( ) CMS CMS CMS_set1_pkey() CMS_decrypt_set1_password() . cert pkey NULL. KEKRecipientInfo CMS_set1_key() CMS_RecipientInfo_set0_key() CMS_RecipientInfo_decrypt() CMS_decrypt() cert pkey NULL. flags. CMS_TEXT MIME "text/plain" . "text/plain" . CMS_decrypt() CMS_decrypt_set1_pkey_and_peer() CMS_decrypt_set1_pkey() CMS_decrypt_set1_password() 1 0 . ERR_get_error(3). set1_ : with_. CMS_verify() CMS_decrypt(). ERR_get_error(3), CMS_encrypt(3) CMS_decrypt_set1_pkey_and_peer() CMS_decrypt_set1_password() OpenSSL 3.0. 2008-2020 OpenSSL. . Apache 2.0 ( ""). . LICENSE . 3 . . : . 3.6.2 7 2026 CMS_DECRYPT(3ssl)