diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-06-30 20:17:02 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2014-06-30 20:17:02 +0700 |
commit | aed7b8d353a835504e0267b8f94b5567924ca07b (patch) | |
tree | 37d8353e78a9ded755de03d85abd93994a0a6a95 /crypto/src | |
parent | Check the low-bit of y is consistent with the header byte in hybrid EC point ... (diff) | |
download | BouncyCastle.NET-ed25519-aed7b8d353a835504e0267b8f94b5567924ca07b.tar.xz |
Fix inverted sense of "negs" in ImplSumOfMultiplies (porting error)
Diffstat (limited to 'crypto/src')
-rw-r--r-- | crypto/src/math/ec/ECAlgorithms.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/math/ec/ECAlgorithms.cs b/crypto/src/math/ec/ECAlgorithms.cs index 6519e81c6..d82cafedf 100644 --- a/crypto/src/math/ec/ECAlgorithms.cs +++ b/crypto/src/math/ec/ECAlgorithms.cs @@ -386,7 +386,7 @@ namespace Org.BouncyCastle.Math.EC { int n = System.Math.Abs(wi); WNafPreCompInfo info = infos[j]; - ECPoint[] table = (wi < 0 == negs[j]) ? info.PreCompNeg : info.PreComp; + ECPoint[] table = (wi < 0 == negs[j]) ? info.PreComp : info.PreCompNeg; r = r.Add(table[n >> 1]); } } |