[#ECDSA_do_verify]
= ECDSA&lowbar;do&lowbar;verify
:mrdocs:

Verifies that the supplied signature is a valid ECDSA signature of the supplied hash value using the supplied public key&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
int
ECDSA&lowbar;do&lowbar;verify(
    unsigned char const* dgst,
    int dgst&lowbar;len,
    xref:ECDSA_SIG.adoc[ECDSA&lowbar;SIG] const* sig,
    xref:EC_KEY.adoc[EC&lowbar;KEY]* eckey);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Return Value

1 if the signature is valid, 0 if the signature is invalid and &hyphen;1 on error

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dgst*
| pointer to the hash value
| *dgst&lowbar;len*
| length of the hash value
| *sig*
| ECDSA&lowbar;SIG structure
| *eckey*
| EC&lowbar;KEY object containing a public EC key
|===


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