Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/src/scalar_impl.h
Show All 10 Lines | |||||
#include "util.h" | #include "util.h" | ||||
#if defined HAVE_CONFIG_H | #if defined HAVE_CONFIG_H | ||||
#include "libsecp256k1-config.h" | #include "libsecp256k1-config.h" | ||||
#endif | #endif | ||||
#if defined(EXHAUSTIVE_TEST_ORDER) | #if defined(EXHAUSTIVE_TEST_ORDER) | ||||
#include "scalar_low_impl.h" | #include "scalar_low_impl.h" | ||||
#elif defined(USE_SCALAR_4X64) | #elif defined(SECP256K1_WIDEMUL_INT128) | ||||
#include "scalar_4x64_impl.h" | #include "scalar_4x64_impl.h" | ||||
#elif defined(USE_SCALAR_8X32) | #elif defined(SECP256K1_WIDEMUL_INT64) | ||||
#include "scalar_8x32_impl.h" | #include "scalar_8x32_impl.h" | ||||
#else | #else | ||||
#error "Please select scalar implementation" | #error "Please select wide multiplication implementation" | ||||
#endif | #endif | ||||
static const secp256k1_scalar secp256k1_scalar_one = SECP256K1_SCALAR_CONST(0, 0, 0, 0, 0, 0, 0, 1); | static const secp256k1_scalar secp256k1_scalar_one = SECP256K1_SCALAR_CONST(0, 0, 0, 0, 0, 0, 0, 1); | ||||
static const secp256k1_scalar secp256k1_scalar_zero = SECP256K1_SCALAR_CONST(0, 0, 0, 0, 0, 0, 0, 0); | static const secp256k1_scalar secp256k1_scalar_zero = SECP256K1_SCALAR_CONST(0, 0, 0, 0, 0, 0, 0, 0); | ||||
#ifndef USE_NUM_NONE | #ifndef USE_NUM_NONE | ||||
static void secp256k1_scalar_get_num(secp256k1_num *r, const secp256k1_scalar *a) { | static void secp256k1_scalar_get_num(secp256k1_num *r, const secp256k1_scalar *a) { | ||||
unsigned char c[32]; | unsigned char c[32]; | ||||
▲ Show 20 Lines • Show All 310 Lines • Show Last 20 Lines |