public class EllipticCurve extends Object
Constructor and Description |
---|
EllipticCurve(ECField field,
BigInteger a,
BigInteger b)
Creates a new
EllipticCurve with the specified field and
coefficients. |
EllipticCurve(ECField field,
BigInteger a,
BigInteger b,
byte[] seed)
Creates a new
EllipticCurve with the specified field,
coefficients and seed. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Returns whether the specified object equals to this elliptic curve.
|
BigInteger |
getA()
Returns the coefficient
a of this elliptic curve. |
BigInteger |
getB()
Returns the coefficient
b of this elliptic curve. |
ECField |
getField()
Returns the finite field of this elliptic curve.
|
byte[] |
getSeed()
Returns a copy of the seed that was used to generate this elliptic curve.
|
int |
hashCode()
Returns the hashcode of this elliptic curve.
|
public EllipticCurve(ECField field, BigInteger a, BigInteger b, byte[] seed)
EllipticCurve
with the specified field,
coefficients and seed.field
- the finite field of this elliptic curve.a
- the coefficient a
.b
- the coefficient b
.seed
- the seed used for the generation of the curve.IllegalArgumentException
- if the specified coefficients are not in the specified field.public EllipticCurve(ECField field, BigInteger a, BigInteger b)
EllipticCurve
with the specified field and
coefficients.field
- the finite field of this elliptic curve.a
- the coefficient a
.b
- the coefficient b
.IllegalArgumentException
- if the specified coefficients are not in the specified field.public BigInteger getA()
a
of this elliptic curve.a
of this elliptic curve.public BigInteger getB()
b
of this elliptic curve.b
of this elliptic curve.public ECField getField()
public byte[] getSeed()
null
if none specified.public boolean equals(Object other)
equals
in class Object
other
- the object to compare.true
if the specified object is equal to this elliptic
curve, otherwise false
.Object.hashCode()
public int hashCode()
hashCode
in class Object
Object.equals(java.lang.Object)