[#EVP_PKEY_verify]
= EVP&lowbar;PKEY&lowbar;verify
:mrdocs:

Verify a signature over `tbs` using an initialised key context&period;

== Synopsis

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

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

== 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*
| Context previously prepared with EVP&lowbar;PKEY&lowbar;verify&lowbar;init() or &lowbar;ex()&period;
| *sig*
| Signature bytes to verify&period;
| *siglen*
| Length of `sig` in bytes&period;
| *tbs*
| Data that was signed (typically a digest or raw message)&period;
| *tbslen*
| Length of `tbs` in bytes&period;
|===


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