summary refs log tree commit diff
path: root/crypto/src
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2014-02-06 12:26:40 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2014-02-06 12:26:40 +0700
commit0c48123ac112ee25719bdb620501c6172c17bc55 (patch)
tree7dce0a935c550aa7761f73a3598945a0f08e72d7 /crypto/src
parentUse fixed-point comb for multiplying by the base-point (diff)
downloadBouncyCastle.NET-ed25519-0c48123ac112ee25719bdb620501c6172c17bc55.tar.xz
Fix incomplete port
Diffstat (limited to 'crypto/src')
-rw-r--r--crypto/src/math/ec/multiplier/FixedPointCombMultiplier.cs2
1 files changed, 1 insertions, 1 deletions
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;