diff --git a/tests/suites/test_suite_bignum_core.function b/tests/suites/test_suite_bignum_core.function index 0cd1507b3..53aa002ce 100644 --- a/tests/suites/test_suite_bignum_core.function +++ b/tests/suites/test_suite_bignum_core.function @@ -301,11 +301,7 @@ void mpi_core_bitlen(char *input_X, int nr_bits) mbedtls_mpi_uint *X = NULL; size_t limbs; - if (strlen(input_X) == 0) { - limbs = 0; - } else { - TEST_EQUAL(mbedtls_test_read_mpi_core(&X, &limbs, input_X), 0); - } + TEST_EQUAL(mbedtls_test_read_mpi_core(&X, &limbs, input_X), 0); TEST_EQUAL(mbedtls_mpi_core_bitlen(X, limbs), nr_bits); exit: diff --git a/tests/suites/test_suite_bignum_core.misc.data b/tests/suites/test_suite_bignum_core.misc.data index 9e1b892fd..ba8602997 100644 --- a/tests/suites/test_suite_bignum_core.misc.data +++ b/tests/suites/test_suite_bignum_core.misc.data @@ -155,9 +155,6 @@ mpi_core_bitlen:"10":5 Test mbedtls_mpi_core_bitlen 0x0a mpi_core_bitlen:"a":4 -Test mbedtls_mpi_core_bitlen: 0 limbs -mpi_core_bitlen:"":0 - Test mbedtls_mpi_core_bitlen: 0 (1 limb) mpi_core_bitlen:"0":0