ECField
, ECFieldFp
, ECFieldF2m
Modifier and Type | Field and Description |
---|---|
private final BigInteger | |
private final BigInteger | |
private final ECField | |
private final byte[] |
Access | Constructor and Description |
---|---|
public | EllipticCurve(ECField
the finite field that this elliptic curve is over. field, BigInteger the first coefficient of this elliptic curve. a, BigInteger the second coefficient of this elliptic curve. b)Creates an elliptic curve with the specified elliptic field
|
public | EllipticCurve(ECField
the finite field that this elliptic curve is over. field, BigInteger the first coefficient of this elliptic curve. a, BigInteger the second coefficient of this elliptic curve. b, byte[] the bytes used during curve generation for later
validation. Contents of this array are copied to protect against
subsequent modification. seed)Creates an elliptic curve with the specified elliptic field
|
Modifier and Type | Method and Description |
---|---|
private static void | |
public boolean | Returns: true ifobj is an instance of
EllipticCurve and the field, A, and B match, false otherwise.the object to be compared. obj)Overrides java. Compares this elliptic curve for equality with the specified object. |
public BigInteger | |
public BigInteger | |
public ECField | Returns: the fieldfield that this curve
is over.Returns the finite field |
public byte[] | Returns: the seeding bytesseed . A new
array is returned each time this method is called.Returns the seeding bytes |
public int | Returns: a hash code value computed from the hash codes of the field, A, and B, as follows:
Overrides java. Returns a hash code value for this elliptic curve. |
a | back to summary |
---|---|
private final BigInteger a |
b | back to summary |
---|---|
private final BigInteger b |
field | back to summary |
---|---|
private final ECField field |
seed | back to summary |
---|---|
private final byte[] seed |
EllipticCurve | back to summary |
---|---|
public EllipticCurve(ECField field, BigInteger a, BigInteger b) Creates an elliptic curve with the specified elliptic field
|
EllipticCurve | back to summary |
---|---|
public EllipticCurve(ECField field, BigInteger a, BigInteger b, byte[] seed) Creates an elliptic curve with the specified elliptic field
|
checkValidity | back to summary |
---|---|
private static void checkValidity(ECField field, BigInteger c, String cName) |
equals | back to summary |
---|---|
public boolean equals(Object obj) Overrides java. Compares this elliptic curve for equality with the specified object.
|
getA | back to summary |
---|---|
public BigInteger getA() Returns the first coefficient
|
getB | back to summary |
---|---|
public BigInteger getB() Returns the second coefficient
|
getField | back to summary |
---|---|
public ECField getField() Returns the finite field
|
getSeed | back to summary |
---|---|
public byte[] getSeed() Returns the seeding bytes
|
hashCode | back to summary |
---|---|
public int hashCode() Overrides java. Returns a hash code value for this elliptic curve.
|