Skip to content

Commit 1a7dfb9

Browse files
1 parent 057b68a commit 1a7dfb9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

C/secp256k1/field_10x26_impl.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,9 @@ static void secp256k1_fe_inv(secp256k1_fe *r, const secp256k1_fe *x) {
13641364
secp256k1_modinv32(&s, &secp256k1_const_modinfo_fe);
13651365
secp256k1_fe_from_signed30(r, &s);
13661366

1367+
#ifdef VERIFY
13671368
VERIFY_CHECK(secp256k1_fe_normalizes_to_zero(r) == secp256k1_fe_normalizes_to_zero(&tmp));
1369+
#endif
13681370
}
13691371
#endif
13701372

@@ -1378,7 +1380,9 @@ static void secp256k1_fe_inv_var(secp256k1_fe *r, const secp256k1_fe *x) {
13781380
secp256k1_modinv32_var(&s, &secp256k1_const_modinfo_fe);
13791381
secp256k1_fe_from_signed30(r, &s);
13801382

1383+
#ifdef VERIFY
13811384
VERIFY_CHECK(secp256k1_fe_normalizes_to_zero(r) == secp256k1_fe_normalizes_to_zero(&tmp));
1385+
#endif
13821386
}
13831387

13841388
#if 0

0 commit comments

Comments
 (0)