[#EVP_DigestVerify]
= EVP&lowbar;DigestVerify
:mrdocs:

Verify `sigret` over `tbs` in one call using a prepared DigestVerify context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;DigestVerify(
    xref:EVP_MD_CTX.adoc[EVP&lowbar;MD&lowbar;CTX]* ctx,
    unsigned char const* sigret,
    size&lowbar;t siglen,
    unsigned char const* tbs,
    size&lowbar;t tbslen);
----

== Return Value

1 if the signature is valid, 0 if it is invalid, or a negative value on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Context initialized with EVP&lowbar;DigestVerifyInit()&period;
| *sigret*
| Signature bytes to verify&period;
| *siglen*
| Length of `sigret` in bytes&period;
| *tbs*
| Message bytes that were signed (&quot;to be signed&quot;)&period;
| *tbslen*
| Length of `tbs` in bytes&period;
|===


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