From ca906e9dd73e0caafa2ae2b34127b3a92d44aa4b Mon Sep 17 00:00:00 2001 From: Werner Lewis Date: Tue, 13 Dec 2022 17:19:57 +0000 Subject: [PATCH] Remove B + A tests Signed-off-by: Werner Lewis --- tests/suites/test_suite_bignum_mod.function | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tests/suites/test_suite_bignum_mod.function b/tests/suites/test_suite_bignum_mod.function index abe4dee40..507920afd 100644 --- a/tests/suites/test_suite_bignum_mod.function +++ b/tests/suites/test_suite_bignum_mod.function @@ -303,24 +303,6 @@ void mpi_mod_add( char * input_N, TEST_EQUAL( 0, mbedtls_mpi_mod_add( &x, &x, &x, &m ) ); TEST_COMPARE_MPI_RESIDUES( x, s ); } - else - { - /* a != b: test b + a */ - - /* b + a => Correct result */ - mbedtls_mpi_mod_add( &x, &b, &a, &m ); - TEST_COMPARE_MPI_RESIDUES( x, s ); - - /* b + a: alias x to a => Correct result */ - memcpy( x.p, a.p, bytes ); - TEST_EQUAL( 0, mbedtls_mpi_mod_add( &x, &b, &x, &m ) ); - TEST_COMPARE_MPI_RESIDUES( x, s ); - - /* b + a: alias x to b => Correct result */ - memcpy( x.p, b.p, bytes ); - TEST_EQUAL( 0, mbedtls_mpi_mod_add( &x, &x, &a, &m ) ); - TEST_COMPARE_MPI_RESIDUES( x, s ); - } exit: mbedtls_free( (void *)m.p ); /* mbedtls_mpi_mod_modulus_free() sets m.p = NULL */