diff options
author | David Hook <dgh@cryptoworkshop.com> | 2014-07-23 14:08:10 +0400 |
---|---|---|
committer | David Hook <dgh@cryptoworkshop.com> | 2014-07-23 14:08:10 +0400 |
commit | a24f03f79d76eef85188472545915cb916d8651b (patch) | |
tree | ed933d9df751801e5886239c7e9a5b1ff553e7e8 /core/src/main/java/org/bouncycastle | |
parent | d6738cbcdb8620c774cd53b600113fdd2f4d007a (diff) |
Earlier JDK compatibility updates
Diffstat (limited to 'core/src/main/java/org/bouncycastle')
-rw-r--r-- | core/src/main/java/org/bouncycastle/math/ec/ECCurve.java | 4 | ||||
-rw-r--r-- | core/src/main/java/org/bouncycastle/math/ec/ECPoint.java | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/core/src/main/java/org/bouncycastle/math/ec/ECCurve.java b/core/src/main/java/org/bouncycastle/math/ec/ECCurve.java index 9ddbc993..4bd2fd2a 100644 --- a/core/src/main/java/org/bouncycastle/math/ec/ECCurve.java +++ b/core/src/main/java/org/bouncycastle/math/ec/ECCurve.java @@ -454,7 +454,7 @@ public abstract class ECCurve protected ECPoint decompressPoint(int yTilde, BigInteger X1) { - ECFieldElement x = fromBigInteger(X1); + ECFieldElement x = this.fromBigInteger(X1); ECFieldElement rhs = x.square().add(a).multiply(x).add(b); ECFieldElement y = rhs.sqrt(); @@ -472,7 +472,7 @@ public abstract class ECCurve y = y.negate(); } - return createRawPoint(x, y, true); + return this.createRawPoint(x, y, true); } } diff --git a/core/src/main/java/org/bouncycastle/math/ec/ECPoint.java b/core/src/main/java/org/bouncycastle/math/ec/ECPoint.java index f4c1d80d..ec320f00 100644 --- a/core/src/main/java/org/bouncycastle/math/ec/ECPoint.java +++ b/core/src/main/java/org/bouncycastle/math/ec/ECPoint.java @@ -534,7 +534,7 @@ public abstract class ECPoint ECFieldElement X = this.x, Y = this.y, A = curve.getA(), B = curve.getB(); ECFieldElement lhs = Y.square(); - switch (getCurveCoordinateSystem()) + switch (this.getCurveCoordinateSystem()) { case ECCurve.COORD_AFFINE: break; @@ -579,7 +579,7 @@ public abstract class ECPoint } // Add -b - return add(b.negate()); + return this.add(b.negate()); } } @@ -1347,7 +1347,7 @@ public abstract class ECPoint protected boolean satisfiesCurveEquation() { - ECCurve curve = getCurve(); + ECCurve curve = this.getCurve(); ECFieldElement X = this.x, A = curve.getA(), B = curve.getB(); int coord = curve.getCoordinateSystem(); |