test_suite_bignum: Fixed whitespace issues
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
This commit is contained in:
parent
b85506e250
commit
b9243ef231
1 changed files with 4 additions and 4 deletions
|
@ -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 ) );
|
TEST_EQUAL( 0, mbedtls_test_read_mpi( &RR_REF, input_rr ) );
|
||||||
|
|
||||||
/* All of the inputs are +ve (or zero) */
|
/* All of the inputs are +ve (or zero) */
|
||||||
TEST_EQUAL( 1, sign_is_valid(&N));
|
TEST_EQUAL( 1, sign_is_valid( &N ) );
|
||||||
TEST_EQUAL( 1, sign_is_valid(&RR_REF));
|
TEST_EQUAL( 1, sign_is_valid( &RR_REF ) );
|
||||||
|
|
||||||
/* Test valid input */
|
/* Test valid input */
|
||||||
TEST_EQUAL( 0, mbedtls_mpi_core_get_mont_R2_unsafe( &RR, &N ) );
|
TEST_EQUAL( 0, mbedtls_mpi_core_get_mont_R2_unsafe( &RR, &N ) );
|
||||||
|
|
||||||
/* Test that the moduli is odd */
|
/* 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) */
|
/* 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 */
|
/* rr is updated to a valid pointer */
|
||||||
TEST_ASSERT( RR.p != NULL );
|
TEST_ASSERT( RR.p != NULL );
|
||||||
|
|
Loading…
Reference in a new issue