tests: restore scalar_mul test
Without this commit, the res[i][1] test vectors are unused. They were introduced to test the correctness of scalar_sqr(x) and scalar_mul(x, x). These tests were deleted as part of removing scalar_sqr in commit 5437e7bdfbffddf69fdf7b4af7e997c78f5dafbf.
This commit is contained in:
parent
efe85c70a2
commit
3dbfb48946
@ -2941,6 +2941,8 @@ static void run_scalar_tests(void) {
|
||||
CHECK(!secp256k1_scalar_check_overflow(&zz));
|
||||
CHECK(secp256k1_scalar_eq(&secp256k1_scalar_one, &zz));
|
||||
}
|
||||
secp256k1_scalar_mul(&z, &x, &x);
|
||||
CHECK(secp256k1_scalar_eq(&r2, &z));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user