diff options
author | Joachim StroĢmbergson <joachim@secworks.se> | 2015-05-22 11:24:08 +0200 |
---|---|---|
committer | Joachim StroĢmbergson <joachim@secworks.se> | 2015-05-22 11:24:08 +0200 |
commit | 28f6859c5dbaf7da1dc3bcccb831dc64f2046606 (patch) | |
tree | 9c5bcaaa0dba7ae4cbbe9974879797598dd93fef | |
parent | 214ebcd9ecf76c8848080ab2d7a3a4f00c98ecda (diff) |
Removed obsoleted temp parameter.
-rw-r--r-- | src/model/c/src/montgomery_array_test.c | 5 |
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", |