Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/src/group.h
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
static int secp256k1_ge_set_xo_var(secp256k1_ge *r, const secp256k1_fe *x, int odd); | static int secp256k1_ge_set_xo_var(secp256k1_ge *r, const secp256k1_fe *x, int odd); | ||||
/** Check whether a group element is the point at infinity. */ | /** Check whether a group element is the point at infinity. */ | ||||
static int secp256k1_ge_is_infinity(const secp256k1_ge *a); | static int secp256k1_ge_is_infinity(const secp256k1_ge *a); | ||||
/** Check whether a group element is valid (i.e., on the curve). */ | /** Check whether a group element is valid (i.e., on the curve). */ | ||||
static int secp256k1_ge_is_valid_var(const secp256k1_ge *a); | static int secp256k1_ge_is_valid_var(const secp256k1_ge *a); | ||||
/** Set r equal to the inverse of a (i.e., mirrored around the X axis) */ | |||||
static void secp256k1_ge_neg(secp256k1_ge *r, const secp256k1_ge *a); | static void secp256k1_ge_neg(secp256k1_ge *r, const secp256k1_ge *a); | ||||
/** Set a group element equal to another which is given in jacobian coordinates */ | /** Set a group element equal to another which is given in jacobian coordinates */ | ||||
static void secp256k1_ge_set_gej(secp256k1_ge *r, secp256k1_gej *a); | static void secp256k1_ge_set_gej(secp256k1_ge *r, secp256k1_gej *a); | ||||
/** Set a batch of group elements equal to the inputs given in jacobian coordinates */ | /** Set a batch of group elements equal to the inputs given in jacobian coordinates */ | ||||
static void secp256k1_ge_set_all_gej_var(secp256k1_ge *r, const secp256k1_gej *a, size_t len); | static void secp256k1_ge_set_all_gej_var(secp256k1_ge *r, const secp256k1_gej *a, size_t len); | ||||
▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines |