[Cryptech-Commits] [core/math/modexp] 01/01: Removed obsoleted temp parameter.
git at cryptech.is
git at cryptech.is
Fri May 22 09:24:15 UTC 2015
This is an automated email from the git hooks/post-receive script.
joachim at secworks.se pushed a commit to branch master
in repository core/math/modexp.
commit 28f6859c5dbaf7da1dc3bcccb831dc64f2046606
Author: Joachim Strömbergson <joachim at secworks.se>
Date: Fri May 22 11:24:08 2015 +0200
Removed obsoleted temp parameter.
---
src/model/c/src/montgomery_array_test.c | 5 ++---
1 file 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",
More information about the Commits
mailing list