From 3df0554c7e78eb97546e44d99998bb649a6e435f Mon Sep 17 00:00:00 2001 From: Gilles Peskine Date: Tue, 15 Jun 2021 21:55:05 +0200 Subject: [PATCH] Fix copypasta in test function argument name Signed-off-by: Gilles Peskine --- tests/suites/test_suite_mpi.function | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/suites/test_suite_mpi.function b/tests/suites/test_suite_mpi.function index 1f71f2915..360916a4a 100644 --- a/tests/suites/test_suite_mpi.function +++ b/tests/suites/test_suite_mpi.function @@ -1204,7 +1204,7 @@ exit: /* BEGIN_CASE */ void mbedtls_mpi_exp_mod( int radix_A, char * input_A, int radix_E, char * input_E, int radix_N, char * input_N, - int radix_X, char * input_X, int div_result ) + int radix_X, char * input_X, int exp_result ) { mbedtls_mpi A, E, N, RR, Z, X; int res; @@ -1217,7 +1217,7 @@ void mbedtls_mpi_exp_mod( int radix_A, char * input_A, int radix_E, TEST_ASSERT( mbedtls_test_read_mpi( &X, radix_X, input_X ) == 0 ); res = mbedtls_mpi_exp_mod( &Z, &A, &E, &N, NULL ); - TEST_ASSERT( res == div_result ); + TEST_ASSERT( res == exp_result ); if( res == 0 ) { TEST_ASSERT( sign_is_valid( &Z ) ); @@ -1226,7 +1226,7 @@ void mbedtls_mpi_exp_mod( int radix_A, char * input_A, int radix_E, /* Now test again with the speed-up parameter supplied as an output. */ res = mbedtls_mpi_exp_mod( &Z, &A, &E, &N, &RR ); - TEST_ASSERT( res == div_result ); + TEST_ASSERT( res == exp_result ); if( res == 0 ) { TEST_ASSERT( sign_is_valid( &Z ) ); @@ -1235,7 +1235,7 @@ void mbedtls_mpi_exp_mod( int radix_A, char * input_A, int radix_E, /* Now test again with the speed-up parameter supplied in calculated form. */ res = mbedtls_mpi_exp_mod( &Z, &A, &E, &N, &RR ); - TEST_ASSERT( res == div_result ); + TEST_ASSERT( res == exp_result ); if( res == 0 ) { TEST_ASSERT( sign_is_valid( &Z ) );