Bitcoin Core 28.99.0
P2P Digital Currency
Classes | Macros | Functions
ecmult_gen.h File Reference
#include "scalar.h"
#include "group.h"
Include dependency graph for ecmult_gen.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  secp256k1_ecmult_gen_context
 

Macros

#define COMB_RANGE   256
 
#define COMB_BLOCKS   11
 
#define COMB_TEETH   6
 
#define COMB_SPACING   CEIL_DIV(COMB_RANGE, COMB_BLOCKS * COMB_TEETH)
 
#define COMB_BITS   (COMB_BLOCKS * COMB_TEETH * COMB_SPACING)
 
#define COMB_POINTS   (1 << (COMB_TEETH - 1))
 

Functions

static void secp256k1_ecmult_gen_context_build (secp256k1_ecmult_gen_context *ctx)
 
static void secp256k1_ecmult_gen_context_clear (secp256k1_ecmult_gen_context *ctx)
 
static void secp256k1_ecmult_gen (const secp256k1_ecmult_gen_context *ctx, secp256k1_gej *r, const secp256k1_scalar *a)
 Multiply with the generator: R = a*G. More...
 
static void secp256k1_ecmult_gen_blind (secp256k1_ecmult_gen_context *ctx, const unsigned char *seed32)
 

Macro Definition Documentation

◆ COMB_BITS

#define COMB_BITS   (COMB_BLOCKS * COMB_TEETH * COMB_SPACING)

Definition at line 84 of file ecmult_gen.h.

◆ COMB_BLOCKS

#define COMB_BLOCKS   11

Definition at line 66 of file ecmult_gen.h.

◆ COMB_POINTS

#define COMB_POINTS   (1 << (COMB_TEETH - 1))

Definition at line 86 of file ecmult_gen.h.

◆ COMB_RANGE

#define COMB_RANGE   256

Definition at line 61 of file ecmult_gen.h.

◆ COMB_SPACING

#define COMB_SPACING   CEIL_DIV(COMB_RANGE, COMB_BLOCKS * COMB_TEETH)

Definition at line 78 of file ecmult_gen.h.

◆ COMB_TEETH

#define COMB_TEETH   6

Definition at line 72 of file ecmult_gen.h.

Function Documentation

◆ secp256k1_ecmult_gen()

static void secp256k1_ecmult_gen ( const secp256k1_ecmult_gen_context ctx,
secp256k1_gej r,
const secp256k1_scalar a 
)
static

Multiply with the generator: R = a*G.

Here is the caller graph for this function:

◆ secp256k1_ecmult_gen_blind()

static void secp256k1_ecmult_gen_blind ( secp256k1_ecmult_gen_context ctx,
const unsigned char *  seed32 
)
static
Here is the caller graph for this function:

◆ secp256k1_ecmult_gen_context_build()

static void secp256k1_ecmult_gen_context_build ( secp256k1_ecmult_gen_context ctx)
static
Here is the caller graph for this function:

◆ secp256k1_ecmult_gen_context_clear()

static void secp256k1_ecmult_gen_context_clear ( secp256k1_ecmult_gen_context ctx)
static
Here is the caller graph for this function: