[Cryptech-Commits] [core/math/modexp] 01/01: Fixed RH operand size.

git at cryptech.is git at cryptech.is
Fri May 8 13:18:22 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 24ef45bd82e0dd87ac913634d9f339f612663638
Author: Joachim Strömbergson <joachim at secworks.se>
Date:   Fri May 8 15:18:17 2015 +0200

    Fixed RH operand size.
---
 src/rtl/montprod.v | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/rtl/montprod.v b/src/rtl/montprod.v
index 2dc65f6..6b525f7 100644
--- a/src/rtl/montprod.v
+++ b/src/rtl/montprod.v
@@ -309,7 +309,7 @@ module montprod(
 
       case (montprod_ctrl_reg)
         CTRL_LOOP_INIT:
-          loop_counter_new = {length, 5'b00000}-1;
+          loop_counter_new = {length, 5'b00000} - 1'b1;
 
         CTRL_LOOP_ITER:
           begin



More information about the Commits mailing list