2022-03-08 19:45:41 +00:00
|
|
|
/*****************************************************************************************************
|
|
|
|
* Copyright (c) 2013, 2014, 2017, 2021 Pieter Wuille, Andrew Poelstra, Jonas Nick, Russell O'Connor *
|
|
|
|
* Distributed under the MIT software license, see the accompanying *
|
|
|
|
* file COPYING or https://www.opensource.org/licenses/mit-license.php. *
|
|
|
|
*****************************************************************************************************/
|
|
|
|
|
|
|
|
#ifndef SECP256K1_ECMULT_COMPUTE_TABLE_H
|
|
|
|
#define SECP256K1_ECMULT_COMPUTE_TABLE_H
|
|
|
|
|
|
|
|
/* Construct table of all odd multiples of gen in range 1..(2**(window_g-1)-1). */
|
2022-11-30 23:38:26 +00:00
|
|
|
static void rustsecp256k1_v0_7_0_ecmult_compute_table(rustsecp256k1_v0_7_0_ge_storage* table, int window_g, const rustsecp256k1_v0_7_0_gej* gen);
|
2022-03-08 19:45:41 +00:00
|
|
|
|
2022-11-30 23:38:26 +00:00
|
|
|
/* Like rustsecp256k1_v0_7_0_ecmult_compute_table, but one for both gen and gen*2^128. */
|
|
|
|
static void rustsecp256k1_v0_7_0_ecmult_compute_two_tables(rustsecp256k1_v0_7_0_ge_storage* table, rustsecp256k1_v0_7_0_ge_storage* table_128, int window_g, const rustsecp256k1_v0_7_0_ge* gen);
|
2022-03-08 19:45:41 +00:00
|
|
|
|
|
|
|
#endif /* SECP256K1_ECMULT_COMPUTE_TABLE_H */
|