com.entrust.toolkit.security.crypto.ec insteadpublic class PolynomeECPoint extends ECPoint
PolynomeECPoint class represents a point on an elliptic
curve on a polynomial field.| Constructor and Description |
|---|
PolynomeECPoint(EllipticCurve curve)
Deprecated.
Creates the point at infinity on the elliptic curve
curve. |
PolynomeECPoint(Polynomial x,
Polynomial y,
EllipticCurve curve)
Deprecated.
Creates a point on the specified elliptic curve.
|
| Modifier and Type | Method and Description |
|---|---|
ECPoint |
add(ECPoint p)
Deprecated.
Returns the sum of the calling point and the argument,
p. |
ECPoint |
doublePoint()
Deprecated.
Returns the calling point added to itself.
|
boolean |
equals(java.lang.Object o)
Deprecated.
Compares two elliptic curve points.
|
EllipticCurve |
getCurve()
Deprecated.
Returns the curve to which the calling point belongs.
|
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 the calling point is the
point at infinity.
|
ECPoint |
multiply(java.math.BigInteger a)
Deprecated.
Returns the result of the scalar multiplication of the calling point by
a. |
void |
setDoublePoint()
Deprecated.
Doubles the calling point adds this point to itself.
|
ASN1Object |
toASN1Object()
Deprecated.
Returns the ASN.1 representation of this elliptic curve point as
specified in X9.62.
|
java.lang.String |
toString()
Deprecated.
Returns
(x,y), where x is the
x coordinate and y is the y coordinate of the calling point. |
public PolynomeECPoint(EllipticCurve curve)
curve.
The curve parameters must be polynomials.
curve - an elliptic curve the curve parameters must be polynomialsjava.lang.NullPointerException - if curve is nulljava.lang.ClassCastException - if the curve parameters are not polynomialspublic PolynomeECPoint(Polynomial x, Polynomial y, EllipticCurve curve)
The curve parameters must be polynomials.
x - the x coordinate of the new pointy - the y coordinate of the new pointjava.lang.NullPointerException - if x, y or curve
is nulljava.lang.ClassCastException - if the curve parameters are not polynomialspublic boolean equals(java.lang.Object o)
Two points are equal if their curves are equal, and if their coordinates are equal.
public ECPoint add(ECPoint p)
p.
The calling point remains unchanged. The argument p must
belong to the same curve p's curve must equal the
calling point's curve.
public ECPoint doublePoint()
The calling point remains unchanged.
doublePoint in class ECPointpublic void setDoublePoint()
public ECPoint multiply(java.math.BigInteger a)
a.public boolean isPointAtInfinity()
isPointAtInfinity in class ECPointtrue if this point is the point at
infinity false otherwisepublic EllipticCurve getCurve()
public FieldElement getXCoordinate()
getXCoordinate in class ECPointpublic FieldElement getYCoordinate()
getYCoordinate in class ECPointpublic java.lang.String toString()
(x,y), where x is the
x coordinate and y is the y coordinate of the calling point.
If the calling point is the point at infinity, toString returns
( 0 ).
public ASN1Object toASN1Object()
toASN1Object in class ECPoint