From b2c06f4acfa55c10fd59a0612a08d68469291041 Mon Sep 17 00:00:00 2001 From: Tom Cosgrove Date: Wed, 24 Aug 2022 17:45:58 +0100 Subject: [PATCH] Remove stale comment, and fix whitespace issue Signed-off-by: Tom Cosgrove --- library/bignum.c | 3 --- tests/suites/test_suite_mpi.function | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) 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 );