Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Hook <dgh@cryptoworkshop.com>2014-07-23 14:08:10 +0400
committerDavid Hook <dgh@cryptoworkshop.com>2014-07-23 14:08:10 +0400
commita24f03f79d76eef85188472545915cb916d8651b (patch)
treeed933d9df751801e5886239c7e9a5b1ff553e7e8
parentd6738cbcdb8620c774cd53b600113fdd2f4d007a (diff)
Earlier JDK compatibility updates
-rw-r--r--core/src/main/java/org/bouncycastle/math/ec/ECCurve.java4
-rw-r--r--core/src/main/java/org/bouncycastle/math/ec/ECPoint.java6
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();