mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-10 06:44:28 +00:00
Remove B + A tests
Signed-off-by: Werner Lewis <werner.lewis@arm.com>
This commit is contained in:
parent
79341a4e7e
commit
ca906e9dd7
@ -303,24 +303,6 @@ void mpi_mod_add( char * input_N,
|
||||
TEST_EQUAL( 0, mbedtls_mpi_mod_add( &x, &x, &x, &m ) );
|
||||
TEST_COMPARE_MPI_RESIDUES( x, s );
|
||||
}
|
||||
else
|
||||
{
|
||||
/* a != b: test b + a */
|
||||
|
||||
/* b + a => Correct result */
|
||||
mbedtls_mpi_mod_add( &x, &b, &a, &m );
|
||||
TEST_COMPARE_MPI_RESIDUES( x, s );
|
||||
|
||||
/* b + a: alias x to a => Correct result */
|
||||
memcpy( x.p, a.p, bytes );
|
||||
TEST_EQUAL( 0, mbedtls_mpi_mod_add( &x, &b, &x, &m ) );
|
||||
TEST_COMPARE_MPI_RESIDUES( x, s );
|
||||
|
||||
/* b + a: alias x to b => Correct result */
|
||||
memcpy( x.p, b.p, bytes );
|
||||
TEST_EQUAL( 0, mbedtls_mpi_mod_add( &x, &x, &a, &m ) );
|
||||
TEST_COMPARE_MPI_RESIDUES( x, s );
|
||||
}
|
||||
|
||||
exit:
|
||||
mbedtls_free( (void *)m.p ); /* mbedtls_mpi_mod_modulus_free() sets m.p = NULL */
|
||||
|
Loading…
x
Reference in New Issue
Block a user