From 28f6859c5dbaf7da1dc3bcccb831dc64f2046606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Stro=CC=88mbergson?= Date: Fri, 22 May 2015 11:24:08 +0200 Subject: Removed obsoleted temp parameter. --- src/model/c/src/montgomery_array_test.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/model/c') 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", -- cgit v1.2.3