parameterize ecmult_const over input size

This commit is contained in:
Andrew Poelstra
2018-03-13 16:32:51 +00:00
parent dbc3ddd5e2
commit 7c1b91ba4b
7 changed files with 78 additions and 49 deletions

View File

@@ -10,6 +10,8 @@
#include "scalar.h"
#include "group.h"
static void secp256k1_ecmult_const(secp256k1_gej *r, const secp256k1_ge *a, const secp256k1_scalar *q);
/* Here `bits` should be set to the maximum bitlength of the _absolute value_ of `q`, plus
* one because we internally sometimes add 2 to the number during the WNAF conversion. */
static void secp256k1_ecmult_const(secp256k1_gej *r, const secp256k1_ge *a, const secp256k1_scalar *q, int bits);
#endif /* SECP256K1_ECMULT_CONST_H */