#include "checkmem.h"
#include "scalar.h"
#include "util.h"
#include <string.h>
Go to the source code of this file.
|
static SECP256K1_INLINE int | secp256k1_scalar_is_even (const secp256k1_scalar *a) |
|
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 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 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_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 *a) |
|
static SECP256K1_INLINE int | secp256k1_scalar_eq (const secp256k1_scalar *a, const secp256k1_scalar *b) |
|
static SECP256K1_INLINE void | secp256k1_scalar_cmov (secp256k1_scalar *r, const secp256k1_scalar *a, int flag) |
|
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 void | secp256k1_scalar_half (secp256k1_scalar *r, const secp256k1_scalar *a) |
|
◆ secp256k1_scalar_add()
◆ secp256k1_scalar_cadd_bit()
static void secp256k1_scalar_cadd_bit |
( |
secp256k1_scalar * |
r, |
|
|
unsigned int |
bit, |
|
|
int |
flag |
|
) |
| |
|
static |
◆ secp256k1_scalar_check_overflow()
◆ secp256k1_scalar_cmov()
◆ secp256k1_scalar_cond_negate()
◆ secp256k1_scalar_eq()
◆ secp256k1_scalar_get_b32()
static void secp256k1_scalar_get_b32 |
( |
unsigned char * |
bin, |
|
|
const secp256k1_scalar * |
a |
|
) |
| |
|
static |
◆ secp256k1_scalar_get_bits_limb32()
◆ secp256k1_scalar_get_bits_var()
◆ secp256k1_scalar_half()
◆ secp256k1_scalar_inverse()
◆ secp256k1_scalar_inverse_var()
◆ secp256k1_scalar_is_even()
◆ secp256k1_scalar_is_high()
◆ secp256k1_scalar_is_one()
◆ secp256k1_scalar_is_zero()
◆ secp256k1_scalar_mul()
◆ secp256k1_scalar_negate()
◆ secp256k1_scalar_set_b32()
static void secp256k1_scalar_set_b32 |
( |
secp256k1_scalar * |
r, |
|
|
const unsigned char * |
b32, |
|
|
int * |
overflow |
|
) |
| |
|
static |
◆ secp256k1_scalar_set_int()
◆ secp256k1_scalar_split_128()