mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
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:
@ -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)]
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user