Pass correct arguments in test

Signed-off-by: Werner Lewis <werner.lewis@arm.com>
This commit is contained in:
Werner Lewis 2022-11-08 16:01:06 +00:00 committed by Tom Cosgrove
parent 1a277d9ad6
commit f907576245

View file

@ -344,9 +344,9 @@ void mpi_mod_raw_add( char * input_A, char * input_B,
mbedtls_mpi_mod_raw_add( X, A, A, &m );
ASSERT_COMPARE( X, bytes, S, bytes );
/* A + A, alias X to A => Correct result */
/* A + A: X, A, B all aliased together => Correct result */
memcpy( X, A, bytes );
mbedtls_mpi_mod_raw_add( X, A, A, &m );
mbedtls_mpi_mod_raw_add( X, X, X, &m );
ASSERT_COMPARE( X, bytes, S, bytes );
}
else