Remove stale comment, and fix whitespace issue

Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
This commit is contained in:
Tom Cosgrove 2022-08-24 17:45:58 +01:00
parent 72594633a1
commit b2c06f4acf
2 changed files with 1 additions and 4 deletions

View File

@ -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 );

View File

@ -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 );