mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-15 23:42:41 +00:00
Pass correct arguments in test
Signed-off-by: Werner Lewis <werner.lewis@arm.com>
This commit is contained in:
parent
1a277d9ad6
commit
f907576245
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user