aboutsummaryrefslogtreecommitdiff
path: root/src/model/c
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/c')
-rw-r--r--src/model/c/src/montgomery_array_test.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/model/c/src/montgomery_array_test.c b/src/model/c/src/montgomery_array_test.c
index e865799..7903b25 100644
--- a/src/model/c/src/montgomery_array_test.c
+++ b/src/model/c/src/montgomery_array_test.c
@@ -71,11 +71,10 @@ void test_montgomery_a_b_m(uint32_t A, uint32_t B, uint32_t M) {
uint32_t Ar[] = { m_residue(A, M) };
uint32_t Br[] = { m_residue(B, M) };
uint32_t s[1];
- uint32_t temp[1];
- mont_prod_array(1, Ar, Br, MM, temp, s);
+ mont_prod_array(1, Ar, Br, MM, s);
uint32_t ONE[] = { 1 };
uint32_t monProd[1];
- mont_prod_array(1, ONE, s, MM, temp, monProd);
+ mont_prod_array(1, ONE, s, MM, monProd);
uint32_t productModulusMontgomery = monProd[0];
uint32_t success = productModulus == productModulusMontgomery;
printf("%c A=%3x B=%3x M=%3x A*B=%3x Ar=%3x Br=%3x Ar*Br=%3x A*B=%3x\n",