Go to the source code of this file.
int ECDSA_do_verify |
( |
const unsigned char * |
dgst, |
|
|
int |
dgst_len, |
|
|
const ECDSA_SIG * |
sig, |
|
|
EC_KEY * |
eckey |
|
) |
| |
Verifies that the supplied signature is a valid ECDSA signature of the supplied hash value using the supplied public key.
- Parameters
-
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 |
- Returns
- 1 if the signature is valid, 0 if the signature is invalid and -1 on error
Definition at line 69 of file ecs_vrf.c.
int ECDSA_verify |
( |
int |
type, |
|
|
const unsigned char * |
dgst, |
|
|
int |
dgstlen, |
|
|
const unsigned char * |
sig, |
|
|
int |
siglen, |
|
|
EC_KEY * |
eckey |
|
) |
| |
Verifies that the given signature is valid ECDSA signature of the supplied hash value using the specified public key.
- Parameters
-
type | this parameter is ignored |
dgst | pointer to the hash value |
dgstlen | length of the hash value |
sig | pointer to the DER encoded signature |
siglen | length of the DER encoded signature |
eckey | EC_KEY object containing a public EC key |
- Returns
- 1 if the signature is valid, 0 if the signature is invalid and -1 on error
Definition at line 83 of file ecs_vrf.c.