ECFieldFp
open class ECFieldFp : ECField
kotlin.Any | |
↳ | java.security.spec.ECFieldFp |
This immutable class defines an elliptic curve (EC) prime finite field.
Summary
Public constructors | |
---|---|
ECFieldFp(p: BigInteger!) Creates an elliptic curve prime finite field with the specified prime |
Public methods | |
---|---|
open Boolean |
Compares this prime finite field for equality with the specified object. |
open Int |
Returns the field size in bits which is size of prime p for this prime finite field. |
open BigInteger! |
getP() Returns the prime |
open Int |
hashCode() Returns a hash code value for this prime finite field. |
Public constructors
ECFieldFp
ECFieldFp(p: BigInteger!)
Creates an elliptic curve prime finite field with the specified prime p
.
Parameters | |
---|---|
p |
BigInteger!: the prime. |
Exceptions | |
---|---|
java.lang.NullPointerException |
if p is null. |
java.lang.IllegalArgumentException |
if p is not positive. |
Public methods
equals
open fun equals(other: Any?): Boolean
Compares this prime finite field for equality with the specified object.
Parameters | |
---|---|
obj |
the object to be compared. |
Return | |
---|---|
Boolean |
true if obj is an instance of ECFieldFp and the prime value match, false otherwise. |
getFieldSize
open fun getFieldSize(): Int
Returns the field size in bits which is size of prime p for this prime finite field.
Return | |
---|---|
Int |
the field size in bits. |
getP
open fun getP(): BigInteger!
Returns the prime p
of this prime finite field.
Return | |
---|---|
BigInteger! |
the prime. |
hashCode
open fun hashCode(): Int
Returns a hash code value for this prime finite field.
Return | |
---|---|
Int |
a hash code value. |