From 0c48123ac112ee25719bdb620501c6172c17bc55 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Thu, 6 Feb 2014 12:26:40 +0700 Subject: Fix incomplete port --- crypto/src/math/ec/multiplier/FixedPointCombMultiplier.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/src/math/ec/multiplier/FixedPointCombMultiplier.cs b/crypto/src/math/ec/multiplier/FixedPointCombMultiplier.cs index bbfe71a0d..48ce4a56c 100644 --- a/crypto/src/math/ec/multiplier/FixedPointCombMultiplier.cs +++ b/crypto/src/math/ec/multiplier/FixedPointCombMultiplier.cs @@ -27,7 +27,7 @@ namespace Org.BouncyCastle.Math.EC.Multiplier FixedPointPreCompInfo info = FixedPointUtilities.Precompute(p, width); ECPoint[] lookupTable = info.PreComp; - int d = (c.Order.BitLength + width - 1) / width; + int d = (size + width - 1) / width; ECPoint R = c.Infinity; -- cgit 1.4.1