Lines Matching defs:curve

12     ECCurve        curve;
24 protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y)
26 this.curve = curve;
33 return curve;
148 return this.curve.getInfinity();
156 * Elliptic curve points over Fp
164 * @param curve the curve to use
168 public Fp(ECCurve curve, ECFieldElement x, ECFieldElement y)
170 this(curve, x, y, false);
176 * @param curve the curve to use
181 public Fp(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression)
183 super(curve, x, y);
263 return this.curve.getInfinity();
271 return new ECPoint.Fp(curve, x3, y3);
287 return this.curve.getInfinity();
290 ECFieldElement TWO = this.curve.fromBigInteger(BigInteger.valueOf(2));
291 ECFieldElement THREE = this.curve.fromBigInteger(BigInteger.valueOf(3));
292 ECFieldElement gamma = this.x.square().multiply(THREE).add(curve.a).divide(y.multiply(TWO));
297 return new ECPoint.Fp(curve, x3, y3, this.withCompression);
314 return new ECPoint.Fp(curve, this.x, this.y.negate(), this.withCompression);
330 * Elliptic curve points over F2m
335 * @param curve base curve
339 public F2m(ECCurve curve, ECFieldElement x, ECFieldElement y)
341 this(curve, x, y, false);
345 * @param curve base curve
350 public F2m(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression)
352 super(curve, x, y);
365 if (curve != null)
367 ECFieldElement.F2m.checkFieldElements(this.x, this.curve.getA());
434 // Check, if points are on the same curve
435 if (!(a.curve.equals(b.curve)))
438 + "curve can be added or subtracted");
455 * checking if both points are on the same curve. Used by multiplication
488 return (ECPoint.F2m)this.curve.getInfinity();
495 = (ECFieldElement.F2m)lambda.square().add(lambda).add(this.x).add(x2).add(this.curve.getA());
500 return new ECPoint.F2m(curve, x3, y3, withCompression);
514 * without checking if both points are on the same curve. Used by
547 return this.curve.getInfinity();
555 add(this.curve.getA());
557 ECFieldElement ONE = this.curve.fromBigInteger(ECConstants.ONE);
562 return new ECPoint.F2m(this.curve, x3, y3, withCompression);
567 return new ECPoint.F2m(curve, this.getX(), this.getY().add(this.getX()), withCompression);
577 if (((ECCurve.F2m)this.curve).isKoblitz())