Implement endomorphism optimization for secp256k1_ecmult_const

This commit is contained in:
Andrew Poelstra
2015-05-22 12:09:36 -05:00
parent ed35d43a0c
commit 92e53fc4c8
3 changed files with 144 additions and 14 deletions

View File

@@ -241,7 +241,7 @@ void bench_wnaf_const(void* arg) {
bench_inv_t *data = (bench_inv_t*)arg;
for (i = 0; i < 20000; i++) {
secp256k1_wnaf_const(data->wnaf, &data->scalar_x, WINDOW_A);
secp256k1_wnaf_const(data->wnaf, data->scalar_x, WINDOW_A);
secp256k1_scalar_add(&data->scalar_x, &data->scalar_x, &data->scalar_y);
}
}