Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/src/field.h
| Show First 20 Lines • Show All 132 Lines • ▼ Show 20 Lines | |||||
| * For an input magnitude 'm', the output magnitude is set to 'floor(m/2) + 1'. | * For an input magnitude 'm', the output magnitude is set to 'floor(m/2) + 1'. | ||||
| * The output is not guaranteed to be normalized, regardless of the input. */ | * The output is not guaranteed to be normalized, regardless of the input. */ | ||||
| static void secp256k1_fe_half(secp256k1_fe *r); | static void secp256k1_fe_half(secp256k1_fe *r); | ||||
| /** Sets each limb of 'r' to its upper bound at magnitude 'm'. The output will also have its | /** Sets each limb of 'r' to its upper bound at magnitude 'm'. The output will also have its | ||||
| * magnitude set to 'm' and is normalized if (and only if) 'm' is zero. */ | * magnitude set to 'm' and is normalized if (and only if) 'm' is zero. */ | ||||
| static void secp256k1_fe_get_bounds(secp256k1_fe *r, int m); | static void secp256k1_fe_get_bounds(secp256k1_fe *r, int m); | ||||
| /** Determine whether a is a square (modulo p). */ | |||||
| static int secp256k1_fe_is_square_var(const secp256k1_fe *a); | |||||
| #endif /* SECP256K1_FIELD_H */ | #endif /* SECP256K1_FIELD_H */ | ||||