Fix the checking of the used limbs
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
parent
68a45e0aaf
commit
4d3f3c5430
1 changed files with 3 additions and 3 deletions
|
@ -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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue