Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/src/group.h
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | |||||
/** Bring a batch inputs given in jacobian coordinates (with known z-ratios) to | /** Bring a batch inputs given in jacobian coordinates (with known z-ratios) to | ||||
* the same global z "denominator". zr must contain the known z-ratios such | * the same global z "denominator". zr must contain the known z-ratios such | ||||
* that mul(a[i].z, zr[i+1]) == a[i+1].z. zr[0] is ignored. The x and y | * that mul(a[i].z, zr[i+1]) == a[i+1].z. zr[0] is ignored. The x and y | ||||
* coordinates of the result are stored in r, the common z coordinate is | * coordinates of the result are stored in r, the common z coordinate is | ||||
* stored in globalz. */ | * stored in globalz. */ | ||||
static void secp256k1_ge_globalz_set_table_gej(size_t len, secp256k1_ge *r, secp256k1_fe *globalz, const secp256k1_gej *a, const secp256k1_fe *zr); | static void secp256k1_ge_globalz_set_table_gej(size_t len, secp256k1_ge *r, secp256k1_fe *globalz, const secp256k1_gej *a, const secp256k1_fe *zr); | ||||
/** Set a group element (affine) equal to the point at infinity. */ | |||||
static void secp256k1_ge_set_infinity(secp256k1_ge *r); | |||||
/** Set a group element (jacobian) equal to the point at infinity. */ | /** Set a group element (jacobian) equal to the point at infinity. */ | ||||
static void secp256k1_gej_set_infinity(secp256k1_gej *r); | static void secp256k1_gej_set_infinity(secp256k1_gej *r); | ||||
/** Set a group element (jacobian) equal to another which is given in affine coordinates. */ | /** Set a group element (jacobian) equal to another which is given in affine coordinates. */ | ||||
static void secp256k1_gej_set_ge(secp256k1_gej *r, const secp256k1_ge *a); | static void secp256k1_gej_set_ge(secp256k1_gej *r, const secp256k1_ge *a); | ||||
/** Compare the X coordinate of a group element (jacobian). */ | /** Compare the X coordinate of a group element (jacobian). */ | ||||
static int secp256k1_gej_eq_x_var(const secp256k1_fe *x, const secp256k1_gej *a); | static int secp256k1_gej_eq_x_var(const secp256k1_fe *x, const secp256k1_gej *a); | ||||
▲ Show 20 Lines • Show All 55 Lines • Show Last 20 Lines |