Merge #510: add a couple missing `const`s to ecmult_pippenger_wnaf
9b3ff03
add a couple missing `const`s to ecmult_pippenger_wnaf (Andrew Poelstra)
Pull request description:
Tree-SHA512: a58458bb4cb1af357b13a506ce8720ce9ecd0c1771a49d9f3ce9398ba7afc56977d722bbd30a63c7c76e63e659ed956d5e82ff762efc4b49488adf0756dc656a
This commit is contained in:
commit
fb9271dcf0
|
@ -631,7 +631,7 @@ struct secp256k1_pippenger_state {
|
||||||
* to the point's wnaf[i]. Second, the buckets are added together such that
|
* to the point's wnaf[i]. Second, the buckets are added together such that
|
||||||
* r += 1*bucket[0] + 3*bucket[1] + 5*bucket[2] + ...
|
* r += 1*bucket[0] + 3*bucket[1] + 5*bucket[2] + ...
|
||||||
*/
|
*/
|
||||||
static int secp256k1_ecmult_pippenger_wnaf(secp256k1_gej *buckets, int bucket_window, struct secp256k1_pippenger_state *state, secp256k1_gej *r, secp256k1_scalar *sc, secp256k1_ge *pt, size_t num) {
|
static int secp256k1_ecmult_pippenger_wnaf(secp256k1_gej *buckets, int bucket_window, struct secp256k1_pippenger_state *state, secp256k1_gej *r, const secp256k1_scalar *sc, const secp256k1_ge *pt, size_t num) {
|
||||||
size_t n_wnaf = WNAF_SIZE(bucket_window+1);
|
size_t n_wnaf = WNAF_SIZE(bucket_window+1);
|
||||||
size_t np;
|
size_t np;
|
||||||
size_t no = 0;
|
size_t no = 0;
|
||||||
|
|
Loading…
Reference in New Issue