Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/src/group.h
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | |||||
static void secp256k1_ge_clear(secp256k1_ge *r); | static void secp256k1_ge_clear(secp256k1_ge *r); | ||||
/** Convert a group element to the storage type. */ | /** Convert a group element to the storage type. */ | ||||
static void secp256k1_ge_to_storage(secp256k1_ge_storage *r, const secp256k1_ge *a); | static void secp256k1_ge_to_storage(secp256k1_ge_storage *r, const secp256k1_ge *a); | ||||
/** Convert a group element back from the storage type. */ | /** Convert a group element back from the storage type. */ | ||||
static void secp256k1_ge_from_storage(secp256k1_ge *r, const secp256k1_ge_storage *a); | static void secp256k1_ge_from_storage(secp256k1_ge *r, const secp256k1_ge_storage *a); | ||||
/** If flag is true, set *r equal to *a; otherwise leave it. Constant-time. */ | /** If flag is true, set *r equal to *a; otherwise leave it. Constant-time. Both *r and *a must be initialized.*/ | ||||
static void secp256k1_ge_storage_cmov(secp256k1_ge_storage *r, const secp256k1_ge_storage *a, int flag); | static void secp256k1_ge_storage_cmov(secp256k1_ge_storage *r, const secp256k1_ge_storage *a, int flag); | ||||
/** Rescale a jacobian point by b which must be non-zero. Constant-time. */ | /** Rescale a jacobian point by b which must be non-zero. Constant-time. */ | ||||
static void secp256k1_gej_rescale(secp256k1_gej *r, const secp256k1_fe *b); | static void secp256k1_gej_rescale(secp256k1_gej *r, const secp256k1_fe *b); | ||||
#endif /* SECP256K1_GROUP_H */ | #endif /* SECP256K1_GROUP_H */ |