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

ECDSA_SIG* ECDSA_do_sign_ex ( const unsigned char *  dgst,
int  dgstlen,
const BIGNUM kinv,
const BIGNUM rp,
EC_KEY eckey 

Computes ECDSA signature of a given hash value using the supplied private key (note: sig must point to ECDSA_size(eckey) bytes of memory).

dgstpointer to the hash value to sign
dgstlenlength of the hash value
kinvBIGNUM with a pre-computed inverse k (optional)
rpBIGNUM with a pre-computed rp value (optioanl), see ECDSA_sign_setup
eckeyEC_KEY object containing a private EC key
pointer to a ECDSA_SIG structure or NULL if an error occurred

Definition at line 67 of file ecs_sign.c.

References ECDSA_do_sign_ex().

Referenced by ECDSA_do_sign(), ECDSA_do_sign_ex(), and ECDSA_sign_ex().

      ECDSA_DATA *ecdsa = ecdsa_check(eckey);
      if (ecdsa == NULL)
            return NULL;
      return ecdsa->meth->ecdsa_do_sign(dgst, dlen, kinv, rp, 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