|
#define | SECP256K1_N_0 ((uint32_t)0xD0364141UL) |
|
#define | SECP256K1_N_1 ((uint32_t)0xBFD25E8CUL) |
|
#define | SECP256K1_N_2 ((uint32_t)0xAF48A03BUL) |
|
#define | SECP256K1_N_3 ((uint32_t)0xBAAEDCE6UL) |
|
#define | SECP256K1_N_4 ((uint32_t)0xFFFFFFFEUL) |
|
#define | SECP256K1_N_5 ((uint32_t)0xFFFFFFFFUL) |
|
#define | SECP256K1_N_6 ((uint32_t)0xFFFFFFFFUL) |
|
#define | SECP256K1_N_7 ((uint32_t)0xFFFFFFFFUL) |
|
#define | SECP256K1_N_C_0 (~SECP256K1_N_0 + 1) |
|
#define | SECP256K1_N_C_1 (~SECP256K1_N_1) |
|
#define | SECP256K1_N_C_2 (~SECP256K1_N_2) |
|
#define | SECP256K1_N_C_3 (~SECP256K1_N_3) |
|
#define | SECP256K1_N_C_4 (1) |
|
#define | SECP256K1_N_H_0 ((uint32_t)0x681B20A0UL) |
|
#define | SECP256K1_N_H_1 ((uint32_t)0xDFE92F46UL) |
|
#define | SECP256K1_N_H_2 ((uint32_t)0x57A4501DUL) |
|
#define | SECP256K1_N_H_3 ((uint32_t)0x5D576E73UL) |
|
#define | SECP256K1_N_H_4 ((uint32_t)0xFFFFFFFFUL) |
|
#define | SECP256K1_N_H_5 ((uint32_t)0xFFFFFFFFUL) |
|
#define | SECP256K1_N_H_6 ((uint32_t)0xFFFFFFFFUL) |
|
#define | SECP256K1_N_H_7 ((uint32_t)0x7FFFFFFFUL) |
|
#define | muladd(a, b) |
| Add a*b to the number defined by (c0,c1,c2). More...
|
|
#define | muladd_fast(a, b) |
| Add a*b to the number defined by (c0,c1). More...
|
|
#define | sumadd(a) |
| Add a to the number defined by (c0,c1,c2). More...
|
|
#define | sumadd_fast(a) |
| Add a to the number defined by (c0,c1). More...
|
|
#define | extract(n) |
| Extract the lowest 32 bits of (c0,c1,c2) into n, and left shift the number 32 bits. More...
|
|
#define | extract_fast(n) |
| Extract the lowest 32 bits of (c0,c1,c2) into n, and left shift the number 32 bits. More...
|
|
|
static SECP256K1_INLINE void | secp256k1_scalar_set_int (secp256k1_scalar *r, unsigned int v) |
|
static SECP256K1_INLINE uint32_t | secp256k1_scalar_get_bits_limb32 (const secp256k1_scalar *a, unsigned int offset, unsigned int count) |
|
static SECP256K1_INLINE uint32_t | secp256k1_scalar_get_bits_var (const secp256k1_scalar *a, unsigned int offset, unsigned int count) |
|
static SECP256K1_INLINE int | secp256k1_scalar_check_overflow (const secp256k1_scalar *a) |
|
static SECP256K1_INLINE int | secp256k1_scalar_reduce (secp256k1_scalar *r, uint32_t overflow) |
|
static int | secp256k1_scalar_add (secp256k1_scalar *r, const secp256k1_scalar *a, const secp256k1_scalar *b) |
|
static void | secp256k1_scalar_cadd_bit (secp256k1_scalar *r, unsigned int bit, int flag) |
|
static void | secp256k1_scalar_set_b32 (secp256k1_scalar *r, const unsigned char *b32, int *overflow) |
|
static void | secp256k1_scalar_get_b32 (unsigned char *bin, const secp256k1_scalar *a) |
|
static SECP256K1_INLINE int | secp256k1_scalar_is_zero (const secp256k1_scalar *a) |
|
static void | secp256k1_scalar_negate (secp256k1_scalar *r, const secp256k1_scalar *a) |
|
static void | secp256k1_scalar_half (secp256k1_scalar *r, const secp256k1_scalar *a) |
|
static SECP256K1_INLINE int | secp256k1_scalar_is_one (const secp256k1_scalar *a) |
|
static int | secp256k1_scalar_is_high (const secp256k1_scalar *a) |
|
static int | secp256k1_scalar_cond_negate (secp256k1_scalar *r, int flag) |
|
static void | secp256k1_scalar_reduce_512 (secp256k1_scalar *r, const uint32_t *l) |
|
static void | secp256k1_scalar_mul_512 (uint32_t *l, const secp256k1_scalar *a, const secp256k1_scalar *b) |
|
static void | secp256k1_scalar_mul (secp256k1_scalar *r, const secp256k1_scalar *a, const secp256k1_scalar *b) |
|
static void | secp256k1_scalar_split_128 (secp256k1_scalar *r1, secp256k1_scalar *r2, const secp256k1_scalar *k) |
|
static SECP256K1_INLINE int | secp256k1_scalar_eq (const secp256k1_scalar *a, const secp256k1_scalar *b) |
|
static SECP256K1_INLINE void | secp256k1_scalar_mul_shift_var (secp256k1_scalar *r, const secp256k1_scalar *a, const secp256k1_scalar *b, unsigned int shift) |
|
static SECP256K1_INLINE void | secp256k1_scalar_cmov (secp256k1_scalar *r, const secp256k1_scalar *a, int flag) |
|
static void | secp256k1_scalar_from_signed30 (secp256k1_scalar *r, const secp256k1_modinv32_signed30 *a) |
|
static void | secp256k1_scalar_to_signed30 (secp256k1_modinv32_signed30 *r, const secp256k1_scalar *a) |
|
static void | secp256k1_scalar_inverse (secp256k1_scalar *r, const secp256k1_scalar *x) |
|
static void | secp256k1_scalar_inverse_var (secp256k1_scalar *r, const secp256k1_scalar *x) |
|
static SECP256K1_INLINE int | secp256k1_scalar_is_even (const secp256k1_scalar *a) |
|