[#CMS_EncryptedData_decrypt] = CMS_EncryptedData_decrypt :mrdocs: Decrypt a CMS EncryptedData ContentInfo with a symmetric key. == Synopsis Declared in `<openssl/cms.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int CMS_EncryptedData_decrypt( xref:CMS_ContentInfo.adoc[CMS_ContentInfo]* cms, unsigned char const* key, size_t keylen, xref:BIO.adoc[BIO]* dcont, xref:BIO.adoc[BIO]* out, unsigned int flags); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *cms* | EncryptedData ContentInfo to decrypt (AEAD ciphers are not supported). | *key* | Symmetric decryption key bytes. | *keylen* | Length of `key` in bytes. | *dcont* | Detached encrypted‐content BIO, or NULL when content is embedded. | *out* | BIO that receives the decrypted plaintext. | *flags* | Optional CMS flags (for example CMS_TEXT). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#