diff options
Diffstat (limited to 'crypto/src/math/ec/ECPoint.cs')
-rw-r--r-- | crypto/src/math/ec/ECPoint.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crypto/src/math/ec/ECPoint.cs b/crypto/src/math/ec/ECPoint.cs index bc7a1e04c..d26cfb914 100644 --- a/crypto/src/math/ec/ECPoint.cs +++ b/crypto/src/math/ec/ECPoint.cs @@ -1204,12 +1204,11 @@ namespace Org.BouncyCastle.Math.EC { ECFieldElement X = RawXCoord, L = RawYCoord; - // TODO The X == 0 stuff needs further thought if (this.IsInfinity || X.IsZero) return L; // Y is actually Lambda (X + Y/X) here; convert to affine value on the fly - ECFieldElement Y = L.Subtract(X).Multiply(X); + ECFieldElement Y = L.Add(X).Multiply(X); if (ECCurve.COORD_LAMBDA_PROJECTIVE == coord) { ECFieldElement Z = RawZCoords[0]; |