[#EVP_DigestVerifyFinal]
= EVP&lowbar;DigestVerifyFinal
:mrdocs:

Finish a DigestVerify operation by checking `sig` against the digested data&period;

== Synopsis

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

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

== 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() and updated with the message&period;
| *sig*
| Signature bytes to verify&period;
| *siglen*
| Length of `sig` in bytes&period;
|===


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