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
Name |
Description |
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 |
Created with MrDocs