mirror of
https://github.com/cuberite/polarssl.git
synced 2025-10-02 10:00:47 -04:00
Fix ecp test
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
c216d94560
commit
855f72bb4c
@ -1653,7 +1653,7 @@ void ecp_mod_random(int id, int ctype)
|
|||||||
TEST_EQUAL(0, mbedtls_mpi_mod_random(&rX, 1, &m,
|
TEST_EQUAL(0, mbedtls_mpi_mod_random(&rX, 1, &m,
|
||||||
mbedtls_test_rnd_std_rand, NULL));
|
mbedtls_test_rnd_std_rand, NULL));
|
||||||
|
|
||||||
TEST_ASSERT(mbedtls_mpi_core_lt_ct(rX.p, m.p, limbs) == 1);
|
TEST_ASSERT(mbedtls_mpi_core_lt_ct(rX.p, m.p, limbs) == MBEDTLS_CT_TRUE);
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
mbedtls_mpi_mod_modulus_free(&m);
|
mbedtls_mpi_mod_modulus_free(&m);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user