From aed7b8d353a835504e0267b8f94b5567924ca07b Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Mon, 30 Jun 2014 20:17:02 +0700 Subject: Fix inverted sense of "negs" in ImplSumOfMultiplies (porting error) --- crypto/src/math/ec/ECAlgorithms.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/src/math/ec/ECAlgorithms.cs') 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]); } } -- cgit 1.4.1