Fix bug in SecT571KPoint.add with order-2 points (lambda-projective).
shouldn't affect crypto operations in the group
@@ -147,7 +147,7 @@ public ECPoint add(ECPoint b)
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.getB(), this.withCompression);
