[#PKCS7_dataVerify]
= PKCS7&lowbar;dataVerify
:mrdocs:

Verify a PKCS&num;7 signed content digest against a signer info and certificate store&period;

== Synopsis

Declared in `&lt;openssl&sol;pkcs7&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
PKCS7&lowbar;dataVerify(
    xref:X509_STORE.adoc[X509&lowbar;STORE]* cert&lowbar;store,
    xref:X509_STORE_CTX.adoc[X509&lowbar;STORE&lowbar;CTX]* ctx,
    xref:BIO.adoc[BIO]* bio,
    xref:PKCS7.adoc[PKCS7]* p7,
    xref:PKCS7_SIGNER_INFO.adoc[PKCS7&lowbar;SIGNER&lowbar;INFO]* si);
----

== Return Value

1 if verification succeeds, or 0 &sol; a negative value on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *cert&lowbar;store*
| Trusted store used to locate and validate the signer certificate&period;
| *ctx*
| Verification context reused or initialized for the signer certificate check&period;
| *bio*
| BIO supplying the signed content octets (digest input)&period;
| *p7*
| Signed PKCS&num;7 structure containing certificates and signer infos&period;
| *si*
| Signer info whose signature and digest are verified&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
