We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0d4d09 commit 00c5442Copy full SHA for 00c5442
src/group_impl.h
@@ -77,6 +77,8 @@ static void secp256k1_ge_verify(const secp256k1_ge *a) {
77
#ifdef VERIFY
78
secp256k1_fe_verify(&a->x);
79
secp256k1_fe_verify(&a->y);
80
+ secp256k1_fe_verify_magnitude(&a->x, 8);
81
+ secp256k1_fe_verify_magnitude(&a->y, 8);
82
VERIFY_CHECK(a->infinity == 0 || a->infinity == 1);
83
#endif
84
(void)a;
@@ -87,6 +89,9 @@ static void secp256k1_gej_verify(const secp256k1_gej *a) {
87
89
88
90
91
secp256k1_fe_verify(&a->z);
92
93
94
+ secp256k1_fe_verify_magnitude(&a->z, 8);
95
96
97
0 commit comments