Logo Search packages:      
Sourcecode: openssl version File versions  Download package

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.

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
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.

References d2i_ECDSA_SIG(), ECDSA_do_verify(), ECDSA_SIG_free(), ECDSA_SIG_new(), and ECDSA_verify().

Referenced by ECDSA_verify().

      ECDSA_SIG *s;
      int ret=-1;

      s = ECDSA_SIG_new();
      if (s == NULL) return(ret);
      if (d2i_ECDSA_SIG(&s, &sigbuf, sig_len) == NULL) goto err;
      ret=ECDSA_do_verify(dgst, dgst_len, s, eckey);

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index