Bitcoin Core  27.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 ECMULT_GEN_PREC_BITS   4
 
#define ECMULT_GEN_PREC_G(bits)   (1 << bits)
 
#define ECMULT_GEN_PREC_N(bits)   (256 / bits)
 

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

◆ ECMULT_GEN_PREC_BITS

#define ECMULT_GEN_PREC_BITS   4

Definition at line 14 of file ecmult_gen.h.

◆ ECMULT_GEN_PREC_G

#define ECMULT_GEN_PREC_G (   bits)    (1 << bits)

Definition at line 28 of file ecmult_gen.h.

◆ ECMULT_GEN_PREC_N

#define ECMULT_GEN_PREC_N (   bits)    (256 / bits)

Definition at line 29 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: