Package java.security.spec
Class ECFieldFp
- java.lang.Object
-
- java.security.spec.ECFieldFp
-
-
Constructor Summary
Constructors Constructor Description ECFieldFp(BigInteger p)Creates a new prime finite field of an elliptic curve with the specified primep.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Returns whether the specified object is equal to this finite field.intgetFieldSize()Returns the size of the finite field (in bits).BigIntegergetP()Returns the prime valuepfor this finite field.inthashCode()Returns the hashcode value for this finite field.
-
-
-
Constructor Detail
-
ECFieldFp
public ECFieldFp(BigInteger p)
Creates a new prime finite field of an elliptic curve with the specified primep.- Parameters:
p- the prime valuep.- Throws:
IllegalArgumentException- ifp <= zero.
-
-
Method Detail
-
getFieldSize
public int getFieldSize()
Returns the size of the finite field (in bits).- Specified by:
getFieldSizein interfaceECField- Returns:
- the size of the finite field (in bits).
-
getP
public BigInteger getP()
Returns the prime valuepfor this finite field.- Returns:
- the prime value
pfor this finite field.
-
equals
public boolean equals(Object obj)
Returns whether the specified object is equal to this finite field.- Overrides:
equalsin classObject- Parameters:
obj- the object to compare to this finite field.- Returns:
trueif the specified object is equal to this finite field, otherwisefalse.- See Also:
Object.hashCode()
-
hashCode
public int hashCode()
Returns the hashcode value for this finite field.- Overrides:
hashCodein classObject- Returns:
- the hashcode value for this finite field.
- See Also:
Object.equals(java.lang.Object)
-
-