Convert the field/group/ecdsa constant initialization to static consts

This commit is contained in:
Pieter Wuille
2015-01-21 17:38:17 -05:00
parent 19f3e76002
commit 4732d26069
12 changed files with 73 additions and 173 deletions

View File

@@ -91,8 +91,7 @@ static void secp256k1_ecmult_start(void) {
secp256k1_ecmult_consts_t *ret = (secp256k1_ecmult_consts_t*)checked_malloc(sizeof(secp256k1_ecmult_consts_t));
/* get the generator */
const secp256k1_ge_t *g = &secp256k1_ge_consts->g;
secp256k1_gej_t gj; secp256k1_gej_set_ge(&gj, g);
secp256k1_gej_t gj; secp256k1_gej_set_ge(&gj, &secp256k1_ge_const_g);
#ifdef USE_ENDOMORPHISM
/* calculate 2^128*generator */