ECDSA_do_verify

Verifies that the supplied signature is a valid ECDSA signature of the supplied hash value using the supplied public key.

Synopsis

Declared in <openssl/ec.h>

[[deprecated]]
int
ECDSA_do_verify(
    unsigned char const* dgst,
    int dgst_len,
    ECDSA_SIG const* sig,
    EC_KEY* eckey);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

1 if the signature is valid, 0 if the signature is invalid and -1 on error

Parameters

NameDescription
dgstpointer to the hash value
dgst_lenlength of the hash value
sigECDSA_SIG structure
eckeyEC_KEY object containing a public EC key