7 #ifndef SECP256K1_ECMULT_GEN_COMPUTE_TABLE_IMPL_H
8 #define SECP256K1_ECMULT_GEN_COMPUTE_TABLE_IMPL_H
33 static const unsigned char nums_b32[33] =
"The scalar for this x is unknown";
55 for (j = 0; j < n; j++) {
57 precj[j*
g] = numsbase;
58 for (i = 1; i <
g; i++) {
62 for (i = 0; i < bits; i++) {
76 for (j = 0; j < n; j++) {
77 for (i = 0; i <
g; i++) {
#define ECMULT_GEN_PREC_G(bits)
#define ECMULT_GEN_PREC_N(bits)
static void secp256k1_ecmult_gen_compute_table(secp256k1_ge_storage *table, const secp256k1_ge *gen, int bits)
#define secp256k1_fe_set_b32_limit
static void secp256k1_gej_double_var(secp256k1_gej *r, const secp256k1_gej *a, secp256k1_fe *rzr)
Set r equal to the double of a.
static int secp256k1_ge_set_xo_var(secp256k1_ge *r, const secp256k1_fe *x, int odd)
Set a group element (affine) equal to the point with the given X coordinate, and given oddness for Y.
static void secp256k1_gej_add_ge_var(secp256k1_gej *r, const secp256k1_gej *a, const secp256k1_ge *b, secp256k1_fe *rzr)
Set r equal to the sum of a and b (with b given in affine coordinates).
static void secp256k1_gej_add_var(secp256k1_gej *r, const secp256k1_gej *a, const secp256k1_gej *b, secp256k1_fe *rzr)
Set r equal to the sum of a and b.
static void secp256k1_ge_set_all_gej_var(secp256k1_ge *r, const secp256k1_gej *a, size_t len)
Set a batch of group elements equal to the inputs given in jacobian coordinates.
static void secp256k1_gej_set_ge(secp256k1_gej *r, const secp256k1_ge *a)
Set a group element (jacobian) equal to another which is given in affine coordinates.
static void secp256k1_ge_to_storage(secp256k1_ge_storage *r, const secp256k1_ge *a)
Convert a group element to the storage type.
static void secp256k1_gej_neg(secp256k1_gej *r, const secp256k1_gej *a)
Set r equal to the inverse of a (i.e., mirrored around the X axis)
static SECP256K1_INLINE void * checked_malloc(const secp256k1_callback *cb, size_t size)
static const secp256k1_callback default_error_callback
#define VERIFY_CHECK(cond)
This field implementation represents the value as 10 uint32_t limbs in base 2^26.
A group element in affine coordinates on the secp256k1 curve, or occasionally on an isomorphic curve ...
A group element of the secp256k1 curve, in jacobian coordinates.