Go to the source code of this file.
Functions | |
ECDSA_SIG * | ECDSA_do_sign (const unsigned char *dgst, int dlen, EC_KEY *eckey) |
ECDSA_SIG * | ECDSA_do_sign_ex (const unsigned char *dgst, int dlen, const BIGNUM *kinv, const BIGNUM *rp, EC_KEY *eckey) |
int | ECDSA_sign (int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, EC_KEY *eckey) |
int | ECDSA_sign_ex (int type, const unsigned char *dgst, int dlen, unsigned char *sig, unsigned int *siglen, const BIGNUM *kinv, const BIGNUM *r, EC_KEY *eckey) |
int | ECDSA_sign_setup (EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp) |
Computes the ECDSA signature of the given hash value using the supplied private key and returns the created signature.
dgst | pointer to the hash value |
dgst_len | length of the hash value |
eckey | EC_KEY object containing a private EC key |
Definition at line 62 of file ecs_sign.c.
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).
dgst | pointer to the hash value to sign |
dgstlen | length of the hash value |
kinv | BIGNUM with a pre-computed inverse k (optional) |
rp | BIGNUM with a pre-computed rp value (optioanl), see ECDSA_sign_setup |
eckey | EC_KEY object containing a private EC key |
Definition at line 67 of file ecs_sign.c.
int ECDSA_sign | ( | int | type, |
const unsigned char * | dgst, | ||
int | dgstlen, | ||
unsigned char * | sig, | ||
unsigned int * | siglen, | ||
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).
type | this parameter is ignored |
dgst | pointer to the hash value to sign |
dgstlen | length of the hash value |
sig | memory for the DER encoded created signature |
siglen | pointer to the length of the returned signature |
eckey | EC_KEY object containing a private EC key |
Definition at line 76 of file ecs_sign.c.
int ECDSA_sign_ex | ( | int | type, |
const unsigned char * | dgst, | ||
int | dgstlen, | ||
unsigned char * | sig, | ||
unsigned int * | siglen, | ||
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).
type | this parameter is ignored |
dgst | pointer to the hash value to sign |
dgstlen | length of the hash value |
sig | buffer to hold the DER encoded signature |
siglen | pointer to the length of the returned signature |
kinv | BIGNUM with a pre-computed inverse k (optional) |
rp | BIGNUM with a pre-computed rp value (optioanl), see ECDSA_sign_setup |
eckey | EC_KEY object containing a private EC key |
Definition at line 82 of file ecs_sign.c.
Precompute parts of the signing operation
eckey | EC_KEY object containing a private EC key |
ctx | BN_CTX object (optional) |
kinv | BIGNUM pointer for the inverse of k |
rp | BIGNUM pointer for x coordinate of k * generator |
Definition at line 99 of file ecs_sign.c.