mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
crypto/secp256k1: update secp256k1_ecmult_const params
"parameterize ecmult_const over input size" bitcoin-core/secp256k1@7c1b91b
This commit is contained in:
parent
3850536c01
commit
6f3be4825b
1 changed files with 1 additions and 1 deletions
|
|
@ -128,7 +128,7 @@ int secp256k1_ext_scalar_mul(const secp256k1_context* ctx, unsigned char *point,
|
||||||
if (overflow || secp256k1_scalar_is_zero(&s)) {
|
if (overflow || secp256k1_scalar_is_zero(&s)) {
|
||||||
ret = 0;
|
ret = 0;
|
||||||
} else {
|
} else {
|
||||||
secp256k1_ecmult_const(&res, &ge, &s);
|
secp256k1_ecmult_const(&res, &ge, &s, 256);
|
||||||
secp256k1_ge_set_gej(&ge, &res);
|
secp256k1_ge_set_gej(&ge, &res);
|
||||||
/* Note: can't use secp256k1_pubkey_save here because it is not constant time. */
|
/* Note: can't use secp256k1_pubkey_save here because it is not constant time. */
|
||||||
secp256k1_fe_normalize(&ge.x);
|
secp256k1_fe_normalize(&ge.x);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue