public final class InternalEllipticCurve
extends java.security.spec.EllipticCurve
java.security.spec.EllipticCurve under J2SE 1.5.
Under J2SE 1.5, the java.security.spec.EllipticCurve contains a
bug that causes it to reject valid curves as invalid, specifically, any curve
that has a zero first or second coefficient. This is in contradiction to
ANSI X9.63-2001 which indicates that a first or second coefficient of zero is
permitted. In fact, the following curves which are defined in ANSI X9.63-2001,
actually have a zero first or second coefficient: ansip160k1, ansip192k1,
ansip224k1, ansip256k1.
EllipticCurve| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Compares this elliptic curve for equality with the specified object.
|
java.math.BigInteger |
getA()
Returns the first coefficient
a of the elliptic curve. |
java.math.BigInteger |
getB()
Returns the second coefficient
b of the elliptic curve. |
int |
hashCode()
Returns a hash code value for this elliptic curve.
|
public java.math.BigInteger getA()
a of the elliptic curve.getA in class java.security.spec.EllipticCurvea.public java.math.BigInteger getB()
b of the elliptic curve.getB in class java.security.spec.EllipticCurveb.public boolean equals(java.lang.Object obj)
equals in class java.security.spec.EllipticCurveobj - the object to be compared.true if obj is an instance of
EllipticCurve and the field, A, B, and seeding
bytes match, false otherwise.public int hashCode()
hashCode in class java.security.spec.EllipticCurve