Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/src/group.h
Show First 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | |||||
static void secp256k1_gej_neg(secp256k1_gej *r, const secp256k1_gej *a); | static void secp256k1_gej_neg(secp256k1_gej *r, const secp256k1_gej *a); | ||||
/** Check whether a group element is the point at infinity. */ | /** Check whether a group element is the point at infinity. */ | ||||
static int secp256k1_gej_is_infinity(const secp256k1_gej *a); | static int secp256k1_gej_is_infinity(const secp256k1_gej *a); | ||||
/** Check whether a group element's y coordinate is a quadratic residue. */ | /** Check whether a group element's y coordinate is a quadratic residue. */ | ||||
static int secp256k1_gej_has_quad_y_var(const secp256k1_gej *a); | static int secp256k1_gej_has_quad_y_var(const secp256k1_gej *a); | ||||
/** Set r equal to the double of a, a cannot be infinity. Constant time. */ | /** Set r equal to the double of a. Constant time. */ | ||||
static void secp256k1_gej_double_nonzero(secp256k1_gej *r, const secp256k1_gej *a); | static void secp256k1_gej_double(secp256k1_gej *r, const secp256k1_gej *a); | ||||
/** Set r equal to the double of a. If rzr is not-NULL this sets *rzr such that r->z == a->z * *rzr (where infinity means an implicit z = 0). */ | /** Set r equal to the double of a. If rzr is not-NULL this sets *rzr such that r->z == a->z * *rzr (where infinity means an implicit z = 0). */ | ||||
static void secp256k1_gej_double_var(secp256k1_gej *r, const secp256k1_gej *a, secp256k1_fe *rzr); | static void secp256k1_gej_double_var(secp256k1_gej *r, const secp256k1_gej *a, secp256k1_fe *rzr); | ||||
/** Set r equal to the sum of a and b. If rzr is non-NULL this sets *rzr such that r->z == a->z * *rzr (a cannot be infinity in that case). */ | /** Set r equal to the sum of a and b. If rzr is non-NULL this sets *rzr such that r->z == a->z * *rzr (a cannot be infinity in that case). */ | ||||
static void secp256k1_gej_add_var(secp256k1_gej *r, const secp256k1_gej *a, const secp256k1_gej *b, secp256k1_fe *rzr); | 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 (with b given in affine coordinates, and not infinity). */ | /** Set r equal to the sum of a and b (with b given in affine coordinates, and not infinity). */ | ||||
Show All 34 Lines |