ECDSA_verify

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

extern (C) nothrow @nogc
int
ECDSA_verify
(
int type
,
const(ubyte)* dgst
,,
const(ubyte)* sig
,
int siglen
,)

Parameters

type int

this parameter is ignored

dgst const(ubyte)*

pointer to the hash value

dgstlen int

length of the hash value

sig const(ubyte)*

pointer to the DER encoded signature

siglen int

length of the DER encoded signature

eckey libressl_d.openssl.ec.EC_KEY*

EC_KEY object containing a public EC key

Return Value

Type: int

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

Meta