mirror of
https://github.com/eosswedenorg/libantelope
synced 2026-09-01 07:58:12 +02:00
Adding vendor/secp256k1-0.3.0
This commit is contained in:
parent
8a55500854
commit
e8ee3fc0de
132 changed files with 59850 additions and 0 deletions
37
vendor/secp256k1-0.3.0/src/precomputed_ecmult.h
vendored
Normal file
37
vendor/secp256k1-0.3.0/src/precomputed_ecmult.h
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
/*****************************************************************************************************
|
||||
* 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_PRECOMPUTED_ECMULT_H
|
||||
#define SECP256K1_PRECOMPUTED_ECMULT_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "group.h"
|
||||
#if defined(EXHAUSTIVE_TEST_ORDER)
|
||||
# if EXHAUSTIVE_TEST_ORDER == 7
|
||||
# define WINDOW_G 3
|
||||
# elif EXHAUSTIVE_TEST_ORDER == 13
|
||||
# define WINDOW_G 4
|
||||
# elif EXHAUSTIVE_TEST_ORDER == 199
|
||||
# define WINDOW_G 8
|
||||
# else
|
||||
# error No known generator for the specified exhaustive test group order.
|
||||
# endif
|
||||
static secp256k1_ge_storage secp256k1_pre_g[ECMULT_TABLE_SIZE(WINDOW_G)];
|
||||
static secp256k1_ge_storage secp256k1_pre_g_128[ECMULT_TABLE_SIZE(WINDOW_G)];
|
||||
#else /* !defined(EXHAUSTIVE_TEST_ORDER) */
|
||||
# define WINDOW_G ECMULT_WINDOW_SIZE
|
||||
extern const secp256k1_ge_storage secp256k1_pre_g[ECMULT_TABLE_SIZE(WINDOW_G)];
|
||||
extern const secp256k1_ge_storage secp256k1_pre_g_128[ECMULT_TABLE_SIZE(WINDOW_G)];
|
||||
#endif /* defined(EXHAUSTIVE_TEST_ORDER) */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* SECP256K1_PRECOMPUTED_ECMULT_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue