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 

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

dgst pointer to the hash value to sign
dgstlen length of the hash value
kinv optional pointer to a pre-computed inverse k
rp optional pointer to the pre-computed rp value (see ECDSA_sign_setup
eckey pointer to the EC_KEY object containing a private EC key
pointer to a ECDSA_SIG structure or NULL

Definition at line 66 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);

Generated by  Doxygen 1.6.0   Back to index