[#PKCS7_dataDecode] = PKCS7_dataDecode :mrdocs: Create a BIO that decrypts/verifies PKCS#7 content for reading. == Synopsis Declared in `<openssl/pkcs7.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BIO.adoc[BIO]* PKCS7_dataDecode( xref:PKCS7.adoc[PKCS7]* p7, xref:EVP_PKEY.adoc[EVP_PKEY]* pkey, xref:BIO.adoc[BIO]* in_bio, xref:X509.adoc[X509]* pcert); ---- == Return Value BIO that yields cleartext content, or NULL on error. == Parameters [cols="1,4"] |=== | Name| Description | *p7* | PKCS#7 EnvelopedData / SignedAndEnvelopedData (or similar) to decode. | *pkey* | Recipient private key for decryption, or NULL when not required. | *in_bio* | Optional BIO supplying encrypted content when not embedded in `p7,` or NULL. | *pcert* | Recipient certificate used to select the matching RecipientInfo, or NULL. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#