[Cryptech-Commits] [user/shatov/modexp_fpga_model] branch master updated: Cosmetic changes.

git at cryptech.is git at cryptech.is
Thu Aug 10 22:59:04 UTC 2017


This is an automated email from the git hooks/post-receive script.

meisterpaul1 at yandex.ru pushed a commit to branch master
in repository user/shatov/modexp_fpga_model.

The following commit(s) were added to refs/heads/master by this push:
     new f9dbd39  Cosmetic changes.
f9dbd39 is described below

commit f9dbd39889065f3310302613bc3bfdf86e0cc5f0
Author: Pavel V. Shatov (Meister) <meisterpaul1 at yandex.ru>
AuthorDate: Fri Aug 11 01:58:22 2017 +0300

    Cosmetic changes.
---
 modexp_fpga_model.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modexp_fpga_model.cpp b/modexp_fpga_model.cpp
index e1c7f4e..01516a8 100644
--- a/modexp_fpga_model.cpp
+++ b/modexp_fpga_model.cpp
@@ -217,7 +217,7 @@ void modexp_crt(	const FPGA_WORD *M,
 	montgomery_calc_n_coeff(N, N_COEFF, len);
 	
 		// reduce M to make it smaller than N
-	montgomery_multiply(M, FACTOR, N, N_COEFF, M0, len, true);
+	montgomery_multiply(M, NULL, N, N_COEFF, M0, len, true);
 
 		// bring M into Montgomery domain
 	montgomery_multiply(M0, FACTOR, N, N_COEFF, M1,       len, false);
@@ -409,7 +409,7 @@ bool test_modexp_crt(const FPGA_WORD *n_rom, const FPGA_WORD *m_rom, const FPGA_
 	FPGA_WORD S[MAX_OPERAND_WORDS];
 	FPGA_WORD R[MAX_OPERAND_WORDS];
 
-		// fill buffers with test vector (message is twice is large!)
+		// fill buffers with test vector (message is twice as large!)
 	load_value_from_rom(n_rom, N, len);
 	load_value_from_rom(m_rom, M, len << 1);
 	load_value_from_rom(d_rom, D, len);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Commits mailing list