7 #ifndef _SECP256K1_SCALAR_
8 #define _SECP256K1_SCALAR_
12 #if defined HAVE_CONFIG_H
13 #include "libsecp256k1-config.h"
16 #if defined(USE_SCALAR_4X64)
17 #include "scalar_4x64.h"
18 #elif defined(USE_SCALAR_8X32)
19 #include "scalar_8x32.h"
21 #error "Please select scalar implementation"
24 static void secp256k1_scalar_start(
void);
25 static void secp256k1_scalar_stop(
void);
31 static unsigned int secp256k1_scalar_get_bits(
const secp256k1_scalar_t *a,
unsigned int offset,
unsigned int count);
34 static unsigned int secp256k1_scalar_get_bits_var(
const secp256k1_scalar_t *a,
unsigned int offset,
unsigned int count);
37 static void secp256k1_scalar_set_b32(
secp256k1_scalar_t *
r,
const unsigned char *bin,
int *overflow);
88 #ifdef USE_ENDOMORPHISM