From 51df2d9ab3a61dafee2c12b39e651d93a6b5be76 Mon Sep 17 00:00:00 2001 From: Tim Ruffing Date: Wed, 17 Jan 2024 16:54:04 +0100 Subject: [PATCH] tests: Drop redundant _scalar_check_overflow calls Redundant since d23da6d55714271c720fee58fbff5e5ef2fe193f. --- src/tests.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/tests.c b/src/tests.c index 32946439ff..e653aeea58 100644 --- a/src/tests.c +++ b/src/tests.c @@ -2927,18 +2927,14 @@ static void run_scalar_tests(void) { secp256k1_scalar_set_b32(&r2, res[i][1], &overflow); CHECK(!overflow); secp256k1_scalar_mul(&z, &x, &y); - CHECK(!secp256k1_scalar_check_overflow(&z)); CHECK(secp256k1_scalar_eq(&r1, &z)); if (!secp256k1_scalar_is_zero(&y)) { secp256k1_scalar_inverse(&zz, &y); - CHECK(!secp256k1_scalar_check_overflow(&zz)); secp256k1_scalar_inverse_var(&zzv, &y); CHECK(secp256k1_scalar_eq(&zzv, &zz)); secp256k1_scalar_mul(&z, &z, &zz); - CHECK(!secp256k1_scalar_check_overflow(&z)); CHECK(secp256k1_scalar_eq(&x, &z)); secp256k1_scalar_mul(&zz, &zz, &y); - CHECK(!secp256k1_scalar_check_overflow(&zz)); CHECK(secp256k1_scalar_eq(&secp256k1_scalar_one, &zz)); } secp256k1_scalar_mul(&z, &x, &x);