Verifies that the supplied signature is a valid ECDSA signature of the supplied hash value using the supplied public key.
Declared in <openssl/ec.h>
[[deprecated]]
int
ECDSA_do_verify(
unsigned char const* dgst,
int dgst_len,
ECDSA_SIG const* sig,
EC_KEY* eckey);
Deprecated. Use of this entity is allowed but discouraged.
1 if the signature is valid, 0 if the signature is invalid and -1 on error
| Name | Description |
|---|---|
| dgst | pointer to the hash value |
| dgst_len | length of the hash value |
| sig | ECDSA_SIG structure |
| eckey | EC_KEY object containing a public EC key |