summary refs log tree commit diff
path: root/crypto/src/math
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2014-06-30 20:17:02 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2014-06-30 20:17:02 +0700
commitaed7b8d353a835504e0267b8f94b5567924ca07b (patch)
tree37d8353e78a9ded755de03d85abd93994a0a6a95 /crypto/src/math
parentCheck the low-bit of y is consistent with the header byte in hybrid EC point ... (diff)
downloadBouncyCastle.NET-ed25519-aed7b8d353a835504e0267b8f94b5567924ca07b.tar.xz
Fix inverted sense of "negs" in ImplSumOfMultiplies (porting error)
Diffstat (limited to 'crypto/src/math')
-rw-r--r--crypto/src/math/ec/ECAlgorithms.cs2
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]);
                     }
                 }