com.entrust.toolkit.security.crypto.ec insteadpublic class ECPointGFp extends ECPoint
ECPointGFp class implements the ECPoint
abstract class.
The class provides the means to represent a point, in an uncompressed form,
on an elliptic curve over GF(p). Such a point is given by two field elements
x, y, taken from GF(p, that satisfy the elliptic
curve equation y^2 = x^3 + ax + b in GF(p). The field elements
a and b determine the choice of elliptic curve.
| Modifier | Constructor and Description |
|---|---|
protected |
ECPointGFp(EllipticCurve curve)
Deprecated.
Produces the point at infinity.
|
|
ECPointGFp(FieldElement x,
FieldElement y,
EllipticCurve curve)
Deprecated.
Creates an instance of the
ECPointGFp given two field
elements and a curve as arguments. |
| Modifier and Type | Method and Description |
|---|---|
ECPoint |
add(ECPoint point)
Deprecated.
Returns the sum of the calling point and the given point on the curve.
|
ECPoint |
doublePoint()
Deprecated.
Returns the double point of this point on the curve.
|
boolean |
equals(java.lang.Object object)
Deprecated.
Determines whether or not the given point equals the calling point.
|
EllipticCurve |
getCurve()
Deprecated.
Returns the elliptic curve corresponding to the calling point.
|
FieldElement |
getXCoordinate()
Deprecated.
Returns the x-coordinate of the calling point.
|
FieldElement |
getYCoordinate()
Deprecated.
Returns the y-coordinate of the calling point.
|
boolean |
isPointAtInfinity()
Deprecated.
Determines whether or not the calling point is the point at infinity.
|
ASN1Object |
toASN1Object()
Deprecated.
Returns the elliptic curve point as an
ASN1Object. |
java.lang.String |
toString()
Deprecated.
Returns the
String representation of the calling point. |
protected ECPointGFp(EllipticCurve curve)
curve - an EllipticCurve objectpublic ECPointGFp(FieldElement x, FieldElement y, EllipticCurve curve) throws java.lang.IllegalArgumentException
ECPointGFp given two field
elements and a curve as arguments.x - a FieldElement objecty - a FieldElement objectcurve - an EllipticCurve object
java.lang.IllegalArgumentException - if the precondition is not satisfiedpublic ASN1Object toASN1Object()
ASN1Object.
The method uses the algorithm described in ANSI X9.62, section 4.3.6.
toASN1Object in class ECPointOCTET_STRINGpublic ECPoint add(ECPoint point)
public ECPoint doublePoint()
doublePoint in class ECPointpublic boolean isPointAtInfinity()
isPointAtInfinity in class ECPointtrue if the calling point is the point at infinity
false otherwisepublic EllipticCurve getCurve()
public FieldElement getXCoordinate()
getXCoordinate in class ECPointFieldElement object.public FieldElement getYCoordinate()
getYCoordinate in class ECPointFieldElement object.public boolean equals(java.lang.Object object)