test_suite_bignum: Fixed whitespace issues

Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
This commit is contained in:
Minos Galanakis 2022-10-20 10:06:16 +01:00
parent b85506e250
commit b9243ef231

View file

@ -1467,17 +1467,17 @@ void mpi_core_get_mont_R2_unsafe( char * input_N,
TEST_EQUAL( 0, mbedtls_test_read_mpi( &RR_REF, input_rr ) );
/* All of the inputs are +ve (or zero) */
TEST_EQUAL( 1, sign_is_valid(&N));
TEST_EQUAL( 1, sign_is_valid(&RR_REF));
TEST_EQUAL( 1, sign_is_valid( &N ) );
TEST_EQUAL( 1, sign_is_valid( &RR_REF ) );
/* Test valid input */
TEST_EQUAL( 0, mbedtls_mpi_core_get_mont_R2_unsafe( &RR, &N ) );
/* Test that the moduli is odd */
TEST_EQUAL(N.p[0] ^ 1, N.p[0] - 1);
TEST_EQUAL( N.p[0] ^ 1, N.p[0] - 1 );
/* Output is +ve (or zero) */
TEST_EQUAL( 1, sign_is_valid(&RR));
TEST_EQUAL( 1, sign_is_valid( &RR ) );
/* rr is updated to a valid pointer */
TEST_ASSERT( RR.p != NULL );