com.entrust.toolkit.security.crypto.ec insteadpublic class EllipticCurve
extends java.lang.Object
EllipticCurve represents an elliptic curve.| Constructor and Description |
|---|
EllipticCurve(ASN1Object object,
Field field)
Deprecated.
Instantiates an
EllipticCurve object given an
ASN1Object and a field as arguments. |
EllipticCurve(FieldElement a,
FieldElement b,
java.math.BigInteger seed)
Deprecated.
Instantiates an
EllipticCurve object given two field
elements and a seed as arguments. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Deprecated.
Compares two elliptic curves for equality.
|
FieldElement |
getA()
Deprecated.
Returns the value of the coefficient
a of the elliptic
curve as defined in X9.62. |
FieldElement |
getB()
Deprecated.
Returns the value of the coefficient
b of the elliptic
curve as defined in X9.62. |
Field |
getField()
Deprecated.
Returns the field corresponding to the curve.
|
ECPoint |
getPointOfInfinity()
Deprecated.
Returns the point at infinity.
|
java.math.BigInteger |
getSeed()
Deprecated.
Returns the seed corresponding to this curve.
|
ASN1Object |
toASN1Object()
Deprecated.
Returns the curve as an
ASN1Object defined in X9.62. |
java.lang.String |
toString()
Deprecated.
Returns the
String representation of an elliptic curve. |
public EllipticCurve(ASN1Object object, Field field) throws java.lang.IllegalArgumentException
EllipticCurve object given an
ASN1Object and a field as arguments.
object - an ASN1Object object
field - a Field objectjava.lang.IllegalArgumentException - ff the precondition is not satisfied.public EllipticCurve(FieldElement a, FieldElement b, java.math.BigInteger seed)
EllipticCurve object given two field
elements and a seed as arguments.
a - a FieldElement objectb - a FieldElement objectseed - a BigInteger object. This might be
null,if there is no seed (that is, if the curve
was not generated randomly using the curve generation algorithm
given in X9.62.
null, must be generated using the curve
generation algorithm given in X9.62.public ASN1Object toASN1Object()
ASN1Object defined in X9.62.
The ASN1Object is a SEQUENCE
that has three components: the two field elements a and
b as OCTET STRINGS, and the seed as a
BIT STRING.
ASN1Objectpublic FieldElement getA()
a of the elliptic
curve as defined in X9.62.
FieldElement object representing apublic FieldElement getB()
b of the elliptic
curve as defined in X9.62.
FieldElement object representing bpublic Field getField()
Field objectpublic java.math.BigInteger getSeed()
If the seed was set as null in the constructor, the method returns
null.
BigInteger can be nullpublic ECPoint getPointOfInfinity()
ECPoint objectpublic java.lang.String toString()
String representation of an elliptic curve.
toString in class java.lang.ObjectStringpublic boolean equals(java.lang.Object obj)
Two elliptic curves are equal if their fields and their
elements a and b are equal.
equals in class java.lang.Objectobj - the reference elliptic curve with which to comparetrue if this elliptic curve is equal to the
obj argument false otherwise