[#EVP_VerifyFinal_ex]
= EVP&lowbar;VerifyFinal&lowbar;ex
:mrdocs:

Verify a signature against the digest accumulated in `ctx` using `pkey&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
EVP&lowbar;VerifyFinal&lowbar;ex(
    xref:EVP_MD_CTX.adoc[EVP&lowbar;MD&lowbar;CTX]* ctx,
    unsigned char const* sigbuf,
    unsigned int siglen,
    xref:EVP_PKEY.adoc[EVP&lowbar;PKEY]* pkey,
    xref:OSSL_LIB_CTX.adoc[OSSL&lowbar;LIB&lowbar;CTX]* libctx,
    char const* propq);
----

== Return Value

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

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| Digest&sol;verify context that has absorbed message data&period;
| *sigbuf*
| Signature bytes to verify&period;
| *siglen*
| Length of `sigbuf` in bytes&period;
| *pkey*
| Public key used for verification&period;
| *libctx*
| Library context used when creating a context for `pkey,` or NULL for the default&period;
| *propq*
| Property query string for provider selection, or NULL&period;
|===


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