Bitcoin Core 28.99.0
P2P Digital Currency
Functions | Variables
scalar_impl.h File Reference
#include "scalar.h"
#include "util.h"
#include "scalar_8x32_impl.h"
Include dependency graph for scalar_impl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static SECP256K1_INLINE void secp256k1_scalar_clear (secp256k1_scalar *r)
 
static int secp256k1_scalar_set_b32_seckey (secp256k1_scalar *r, const unsigned char *bin)
 
static void secp256k1_scalar_verify (const secp256k1_scalar *r)
 
static void secp256k1_scalar_split_lambda (secp256k1_scalar *SECP256K1_RESTRICT r1, secp256k1_scalar *SECP256K1_RESTRICT r2, const secp256k1_scalar *SECP256K1_RESTRICT k)
 

Variables

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_const_lambda
 The Secp256k1 curve has an endomorphism, where lambda * (x, y) = (beta * x, y), where lambda is: More...
 

Function Documentation

◆ secp256k1_scalar_clear()

static SECP256K1_INLINE void secp256k1_scalar_clear ( secp256k1_scalar r)
static

Definition at line 30 of file scalar_impl.h.

Here is the call graph for this function:

◆ secp256k1_scalar_set_b32_seckey()

static int secp256k1_scalar_set_b32_seckey ( secp256k1_scalar r,
const unsigned char *  bin 
)
static

Definition at line 34 of file scalar_impl.h.

Here is the call graph for this function:

◆ secp256k1_scalar_split_lambda()

static void secp256k1_scalar_split_lambda ( secp256k1_scalar *SECP256K1_RESTRICT  r1,
secp256k1_scalar *SECP256K1_RESTRICT  r2,
const secp256k1_scalar *SECP256K1_RESTRICT  k 
)
static

Definition at line 142 of file scalar_impl.h.

Here is the call graph for this function:

◆ secp256k1_scalar_verify()

static void secp256k1_scalar_verify ( const secp256k1_scalar r)
static

Definition at line 42 of file scalar_impl.h.

Here is the call graph for this function:

Variable Documentation

◆ secp256k1_const_lambda

const secp256k1_scalar secp256k1_const_lambda
static
Initial value:
0x5363AD4CUL, 0xC05C30E0UL, 0xA5261C02UL, 0x8812645AUL,
0x122E22EAUL, 0x20816678UL, 0xDF02967CUL, 0x1B23BD72UL
)
#define SECP256K1_SCALAR_CONST(d7, d6, d5, d4, d3, d2, d1, d0)
Definition: scalar_4x64.h:17

The Secp256k1 curve has an endomorphism, where lambda * (x, y) = (beta * x, y), where lambda is:

Definition at line 83 of file scalar_impl.h.

◆ secp256k1_scalar_one

const secp256k1_scalar secp256k1_scalar_one = SECP256K1_SCALAR_CONST(0, 0, 0, 0, 0, 0, 0, 1)
static

Definition at line 27 of file scalar_impl.h.

◆ secp256k1_scalar_zero

const secp256k1_scalar secp256k1_scalar_zero = SECP256K1_SCALAR_CONST(0, 0, 0, 0, 0, 0, 0, 0)
static

Definition at line 28 of file scalar_impl.h.