diff options
Diffstat (limited to 'core/src/main/java/org/bouncycastle/math/ec/custom/djb/Curve25519Point.java')
-rw-r--r-- | core/src/main/java/org/bouncycastle/math/ec/custom/djb/Curve25519Point.java | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/core/src/main/java/org/bouncycastle/math/ec/custom/djb/Curve25519Point.java b/core/src/main/java/org/bouncycastle/math/ec/custom/djb/Curve25519Point.java index f2341314..2913af99 100644 --- a/core/src/main/java/org/bouncycastle/math/ec/custom/djb/Curve25519Point.java +++ b/core/src/main/java/org/bouncycastle/math/ec/custom/djb/Curve25519Point.java @@ -253,15 +253,7 @@ public class Curve25519Point extends ECPoint return this; } - ECCurve curve = this.getCurve(); - int coord = curve.getCoordinateSystem(); - - if (ECCurve.COORD_AFFINE != coord) - { - return new Curve25519Point(curve, this.x, this.y.negate(), this.zs, this.withCompression); - } - - return new Curve25519Point(curve, this.x, this.y.negate(), this.withCompression); + return new Curve25519Point(this.getCurve(), this.x, this.y.negate(), this.zs, this.withCompression); } protected ECFieldElement calculateJacobianModifiedW(ECFieldElement Z, ECFieldElement ZSquared) |