| Constructor and Description |
|---|
ECFieldFp(BigInteger p)
Creates a new prime finite field of an elliptic curve with the specified
prime
p. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Returns whether the specified object is equal to this finite field.
|
int |
getFieldSize()
Returns the size of the finite field (in bits).
|
BigInteger |
getP()
Returns the prime value
p for this finite field. |
int |
hashCode()
Returns the hashcode value for this finite field.
|
public ECFieldFp(BigInteger p)
p.p - the prime value p.IllegalArgumentException - if p <= zero.public int getFieldSize()
getFieldSize in interface ECFieldpublic BigInteger getP()
p for this finite field.p for this finite field.public boolean equals(Object obj)
equals in class Objectobj - the object to compare to this finite field.true if the specified object is equal to this finite field,
otherwise false.Object.hashCode()public int hashCode()
hashCode in class ObjectObject.equals(java.lang.Object)