From 857bd45eddfc7d3345efb4a037176fc642e76624 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Fri, 17 Feb 2017 17:54:09 +0700 Subject: Fix bug in SecT571KPoint.Add with order-2 points (lambda-projective). - shouldn't affect crypto operations in the group --- crypto/src/math/ec/custom/sec/SecT571K1Point.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/src/math') diff --git a/crypto/src/math/ec/custom/sec/SecT571K1Point.cs b/crypto/src/math/ec/custom/sec/SecT571K1Point.cs index f92370f87..deaaf0c74 100644 --- a/crypto/src/math/ec/custom/sec/SecT571K1Point.cs +++ b/crypto/src/math/ec/custom/sec/SecT571K1Point.cs @@ -131,7 +131,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec ECFieldElement Y2 = L2; ECFieldElement L = Y1.Add(Y2).Divide(X1); - X3 = L.Square().Add(L).Add(X1).AddOne(); + X3 = L.Square().Add(L).Add(X1); if (X3.IsZero) { return new SecT571K1Point(curve, X3, curve.B, IsCompressed); -- cgit 1.4.1