Tighten group magnitude limits
- adjust test methods that randomize magnitudes Co-authored-by: Sebastian Falbesoner <sebastian.falbesoner@gmail.com> Co-authored-by: Jonas Nick <jonasd.nick@gmail.com>
This commit is contained in:
committed by
Sebastian Falbesoner
parent
173e8d061a
commit
c83afa66e0
10
src/group.h
10
src/group.h
@@ -46,11 +46,11 @@ typedef struct {
|
||||
|
||||
/** Maximum allowed magnitudes for group element coordinates
|
||||
* in affine (x, y) and jacobian (x, y, z) representation. */
|
||||
#define SECP256K1_GE_X_MAGNITUDE_MAX 8
|
||||
#define SECP256K1_GE_Y_MAGNITUDE_MAX 8
|
||||
#define SECP256K1_GEJ_X_MAGNITUDE_MAX 8
|
||||
#define SECP256K1_GEJ_Y_MAGNITUDE_MAX 8
|
||||
#define SECP256K1_GEJ_Z_MAGNITUDE_MAX 8
|
||||
#define SECP256K1_GE_X_MAGNITUDE_MAX 4
|
||||
#define SECP256K1_GE_Y_MAGNITUDE_MAX 3
|
||||
#define SECP256K1_GEJ_X_MAGNITUDE_MAX 4
|
||||
#define SECP256K1_GEJ_Y_MAGNITUDE_MAX 4
|
||||
#define SECP256K1_GEJ_Z_MAGNITUDE_MAX 1
|
||||
|
||||
/** Set a group element equal to the point with given X and Y coordinates */
|
||||
static void secp256k1_ge_set_xy(secp256k1_ge *r, const secp256k1_fe *x, const secp256k1_fe *y);
|
||||
|
||||
Reference in New Issue
Block a user