diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-02-06 12:26:40 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-02-06 12:26:40 +0700 |
commit | 0c48123ac112ee25719bdb620501c6172c17bc55 (patch) | |
tree | 7dce0a935c550aa7761f73a3598945a0f08e72d7 /crypto/src | |
parent | Use fixed-point comb for multiplying by the base-point (diff) | |
download | BouncyCastle.NET-ed25519-0c48123ac112ee25719bdb620501c6172c17bc55.tar.xz |
Fix incomplete port
Diffstat (limited to 'crypto/src')
-rw-r--r-- | crypto/src/math/ec/multiplier/FixedPointCombMultiplier.cs | 2 |
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; |