Change order of test arguments for bignum_mod_raw to simplify Python script

Signed-off-by: Tom Cosgrove <tom.cosgrove@arm.com>
This commit is contained in:
Tom Cosgrove 2022-11-24 21:29:23 +00:00
parent 1923009cdb
commit 50fc127a4e
2 changed files with 3 additions and 8 deletions

View file

@ -51,12 +51,6 @@ class BignumModRawAdd(bignum_common.ModOperationCommon,
input_style = "fixed" input_style = "fixed"
arity = 2 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]: def result(self) -> List[str]:
result = (self.int_a + self.int_b) % self.int_n result = (self.int_a + self.int_b) % self.int_n
return [self.format_result(result)] return [self.format_result(result)]

View file

@ -288,8 +288,9 @@ exit:
/* BEGIN MERGE SLOT 5 */ /* BEGIN MERGE SLOT 5 */
/* BEGIN_CASE */ /* BEGIN_CASE */
void mpi_mod_raw_add( char * input_A, char * input_B, void mpi_mod_raw_add( char * input_N,
char * input_N, char * input_S ) char * input_A, char * input_B,
char * input_S )
{ {
mbedtls_mpi_uint *A = NULL; mbedtls_mpi_uint *A = NULL;
mbedtls_mpi_uint *B = NULL; mbedtls_mpi_uint *B = NULL;