From 50fc127a4e3ef8d3ac2ca1c5c51f9fd6f1065fcd Mon Sep 17 00:00:00 2001 From: Tom Cosgrove Date: Thu, 24 Nov 2022 21:29:23 +0000 Subject: [PATCH] Change order of test arguments for bignum_mod_raw to simplify Python script Signed-off-by: Tom Cosgrove --- scripts/mbedtls_dev/bignum_mod_raw.py | 6 ------ tests/suites/test_suite_bignum_mod_raw.function | 5 +++-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/scripts/mbedtls_dev/bignum_mod_raw.py b/scripts/mbedtls_dev/bignum_mod_raw.py index ee144aa1e..4c53a7f4c 100644 --- a/scripts/mbedtls_dev/bignum_mod_raw.py +++ b/scripts/mbedtls_dev/bignum_mod_raw.py @@ -51,12 +51,6 @@ class BignumModRawAdd(bignum_common.ModOperationCommon, input_style = "fixed" arity = 2 - def arguments(self) -> List[str]: - return [bignum_common.quote_str(n) for n in [self.arg_a, - self.arg_b, - self.arg_n] - ] + self.result() - def result(self) -> List[str]: result = (self.int_a + self.int_b) % self.int_n return [self.format_result(result)] diff --git a/tests/suites/test_suite_bignum_mod_raw.function b/tests/suites/test_suite_bignum_mod_raw.function index 7b1bda708..148386189 100644 --- a/tests/suites/test_suite_bignum_mod_raw.function +++ b/tests/suites/test_suite_bignum_mod_raw.function @@ -288,8 +288,9 @@ exit: /* BEGIN MERGE SLOT 5 */ /* BEGIN_CASE */ -void mpi_mod_raw_add( char * input_A, char * input_B, - char * input_N, char * input_S ) +void mpi_mod_raw_add( char * input_N, + char * input_A, char * input_B, + char * input_S ) { mbedtls_mpi_uint *A = NULL; mbedtls_mpi_uint *B = NULL;