Electroneum
precomputed_ecmult.h
Go to the documentation of this file.
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_PRECOMPUTED_ECMULT_H
8 #define SECP256K1_PRECOMPUTED_ECMULT_H
9 
10 #ifdef __cplusplus
11 extern "C" {
12 #endif
13 
14 #include "group.h"
15 #if defined(EXHAUSTIVE_TEST_ORDER)
16 # if EXHAUSTIVE_TEST_ORDER == 7
17 # define WINDOW_G 3
18 # elif EXHAUSTIVE_TEST_ORDER == 13
19 # define WINDOW_G 4
20 # elif EXHAUSTIVE_TEST_ORDER == 199
21 # define WINDOW_G 8
22 # else
23 # error No known generator for the specified exhaustive test group order.
24 # endif
27 #else /* !defined(EXHAUSTIVE_TEST_ORDER) */
28 # define WINDOW_G ECMULT_WINDOW_SIZE
31 #endif /* defined(EXHAUSTIVE_TEST_ORDER) */
32 
33 #ifdef __cplusplus
34 }
35 #endif
36 
37 #endif /* SECP256K1_PRECOMPUTED_ECMULT_H */
#define ECMULT_TABLE_SIZE(w)
Definition: ecmult.h:41
#define WINDOW_G
const secp256k1_ge_storage secp256k1_pre_g_128[ECMULT_TABLE_SIZE(WINDOW_G)]
const secp256k1_ge_storage secp256k1_pre_g[ECMULT_TABLE_SIZE(WINDOW_G)]