ECDSA_verify

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

Synopsis

Declared in <openssl/ec.h>

[[deprecated]]
int
ECDSA_verify(
    int type,
    unsigned char const* dgst,
    int dgstlen,
    unsigned char const* sig,
    int siglen,
    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
typethis parameter is ignored
dgstpointer to the hash value
dgstlenlength of the hash value
sigpointer to the DER encoded signature
siglenlength of the DER encoded signature
eckeyEC_KEY object containing a public EC key