Bitcoin ABC 0.30.5
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_B   ECMULT_GEN_PREC_BITS
 
#define ECMULT_GEN_PREC_G   (1 << ECMULT_GEN_PREC_B)
 
#define ECMULT_GEN_PREC_N   (256 / ECMULT_GEN_PREC_B)
 

Functions

static void secp256k1_ecmult_gen_context_init (secp256k1_ecmult_gen_context *ctx)
 
static void secp256k1_ecmult_gen_context_build (secp256k1_ecmult_gen_context *ctx, void **prealloc)
 
static void secp256k1_ecmult_gen_context_finalize_memcpy (secp256k1_ecmult_gen_context *dst, const secp256k1_ecmult_gen_context *src)
 
static void secp256k1_ecmult_gen_context_clear (secp256k1_ecmult_gen_context *ctx)
 
static int secp256k1_ecmult_gen_context_is_built (const 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_B

#define ECMULT_GEN_PREC_B   ECMULT_GEN_PREC_BITS

Definition at line 16 of file ecmult_gen.h.

◆ ECMULT_GEN_PREC_G

#define ECMULT_GEN_PREC_G   (1 << ECMULT_GEN_PREC_B)

Definition at line 17 of file ecmult_gen.h.

◆ ECMULT_GEN_PREC_N

#define ECMULT_GEN_PREC_N   (256 / ECMULT_GEN_PREC_B)

Definition at line 18 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,
void **  prealloc 
)
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:

◆ secp256k1_ecmult_gen_context_finalize_memcpy()

static void secp256k1_ecmult_gen_context_finalize_memcpy ( secp256k1_ecmult_gen_context dst,
const secp256k1_ecmult_gen_context src 
)
static
Here is the caller graph for this function:

◆ secp256k1_ecmult_gen_context_init()

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

◆ secp256k1_ecmult_gen_context_is_built()

static int secp256k1_ecmult_gen_context_is_built ( const secp256k1_ecmult_gen_context ctx)
static
Here is the caller graph for this function: