7 #ifndef SECP256K1_ECMULT_GEN_H
8 #define SECP256K1_ECMULT_GEN_H
13 #ifndef ECMULT_GEN_PREC_BITS
14 # define ECMULT_GEN_PREC_BITS 4
16 # pragma message DEBUG_CONFIG_MSG("ECMULT_GEN_PREC_BITS undefined, assuming default value")
21 # pragma message DEBUG_CONFIG_DEF(ECMULT_GEN_PREC_BITS)
24 #if ECMULT_GEN_PREC_BITS != 2 && ECMULT_GEN_PREC_BITS != 4 && ECMULT_GEN_PREC_BITS != 8
25 # error "Set ECMULT_GEN_PREC_BITS to 2, 4 or 8."
28 #define ECMULT_GEN_PREC_G(bits) (1 << bits)
29 #define ECMULT_GEN_PREC_N(bits) (256 / bits)
static void secp256k1_ecmult_gen_context_clear(secp256k1_ecmult_gen_context *ctx)
static void secp256k1_ecmult_gen_context_build(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.
static void secp256k1_ecmult_gen_blind(secp256k1_ecmult_gen_context *ctx, const unsigned char *seed32)
A group element of the secp256k1 curve, in jacobian coordinates.
A scalar modulo the group order of the secp256k1 curve.