]>
Commit | Line | Data |
---|---|---|
07aa4c70 DA |
1 | /*********************************************************************** |
2 | * Copyright (c) 2015 Andrew Poelstra * | |
3 | * Distributed under the MIT software license, see the accompanying * | |
4 | * file COPYING or https://www.opensource.org/licenses/mit-license.php.* | |
5 | ***********************************************************************/ | |
44015000 | 6 | |
abe2d3e8 DR |
7 | #ifndef SECP256K1_ECMULT_CONST_H |
8 | #define SECP256K1_ECMULT_CONST_H | |
44015000 AP |
9 | |
10 | #include "scalar.h" | |
11 | #include "group.h" | |
12 | ||
ee9e68cd GM |
13 | /** |
14 | * Multiply: R = q*A (in constant-time) | |
15 | * Here `bits` should be set to the maximum bitlength of the _absolute value_ of `q`, plus | |
16 | * one because we internally sometimes add 2 to the number during the WNAF conversion. | |
17 | */ | |
7c1b91ba | 18 | static void secp256k1_ecmult_const(secp256k1_gej *r, const secp256k1_ge *a, const secp256k1_scalar *q, int bits); |
44015000 | 19 | |
abe2d3e8 | 20 | #endif /* SECP256K1_ECMULT_CONST_H */ |