diff --git a/library/bignum.c b/library/bignum.c index d5e799e053..3fa6a3b736 100644 --- a/library/bignum.c +++ b/library/bignum.c @@ -1545,9 +1545,6 @@ int mbedtls_mpi_mod_int( mbedtls_mpi_uint *r, const mbedtls_mpi *A, mbedtls_mpi_ return( 0 ); } -/* - * Fast Montgomery initialization (thanks to Tom St Denis) - */ static void mpi_montg_init( mbedtls_mpi_uint *mm, const mbedtls_mpi *N ) { *mm = mbedtls_mpi_montg_init( N->p ); diff --git a/tests/suites/test_suite_mpi.function b/tests/suites/test_suite_mpi.function index dcc869f806..40c302bdaa 100644 --- a/tests/suites/test_suite_mpi.function +++ b/tests/suites/test_suite_mpi.function @@ -2008,7 +2008,7 @@ void mbedtls_mpi_montg_init( char * input_N, char * input_mm ) * The data file contains the expected result for sizeof(mbedtls_mpi_uint) == 8; * for sizeof(mbedtls_mpi_uint) == 4 it's just the LSW of this. */ - TEST_ASSERT( mm.n == 1 || mm.n == 2); + TEST_ASSERT( mm.n == 1 || mm.n == 2 ); /* All of the inputs are +ve (or zero) */ TEST_EQUAL( N.s, 1 );