Fix the checking of the used limbs

Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
Gabor Mezei 2022-11-23 13:14:15 +01:00
parent 68a45e0aaf
commit 4d3f3c5430
No known key found for this signature in database
GPG key ID: FEE76C0CF8C6267D

View file

@ -302,9 +302,9 @@ void mpi_mod_raw_sub( char * input_A,
size_t limbs = limbs_N;
size_t bytes = limbs * sizeof( mbedtls_mpi_uint );
TEST_ASSERT( limbs_A <= limbs );
TEST_ASSERT( limbs_B <= limbs );
TEST_ASSERT( limbs_res <= limbs );
TEST_EQUAL( limbs_A, limbs );
TEST_EQUAL( limbs_B, limbs );
TEST_EQUAL( limbs_res, limbs );
ASSERT_ALLOC( X, limbs );