github.com/ethereum/go-ethereum@v1.16.1/crypto/secp256k1/libsecp256k1/src/ecmult_compute_table.h (about) 1 /***************************************************************************************************** 2 * Copyright (c) 2013, 2014, 2017, 2021 Pieter Wuille, Andrew Poelstra, Jonas Nick, Russell O'Connor * 3 * Distributed under the MIT software license, see the accompanying * 4 * file COPYING or https://www.opensource.org/licenses/mit-license.php. * 5 *****************************************************************************************************/ 6 7 #ifndef SECP256K1_ECMULT_COMPUTE_TABLE_H 8 #define SECP256K1_ECMULT_COMPUTE_TABLE_H 9 10 /* Construct table of all odd multiples of gen in range 1..(2**(window_g-1)-1). */ 11 static void secp256k1_ecmult_compute_table(secp256k1_ge_storage* table, int window_g, const secp256k1_gej* gen); 12 13 /* Like secp256k1_ecmult_compute_table, but one for both gen and gen*2^128. */ 14 static void secp256k1_ecmult_compute_two_tables(secp256k1_ge_storage* table, secp256k1_ge_storage* table_128, int window_g, const secp256k1_ge* gen); 15 16 #endif /* SECP256K1_ECMULT_COMPUTE_TABLE_H */