mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-08-01 10:06:53 +03:00
Move bignum flag for negative zero into test_info
Add accessors ready for protection with test_info mutex. Signed-off-by: Paul Elliott <paul.elliott@arm.com>
This commit is contained in:
@ -24,7 +24,7 @@ static int sign_is_valid(const mbedtls_mpi *X)
|
||||
* we sometimes test the robustness of library functions when given
|
||||
* a negative zero input. If a test case has a negative zero as input,
|
||||
* we don't mind if the function has a negative zero output. */
|
||||
if (!mbedtls_test_case_uses_negative_0 &&
|
||||
if (!mbedtls_test_get_case_uses_negative_0() &&
|
||||
mbedtls_mpi_bitlen(X) == 0 && X->s != 1) {
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user