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:
parent
1923009cdb
commit
50fc127a4e
2 changed files with 3 additions and 8 deletions
|
@ -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)]
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue