Added in API level 1

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

Creates an elliptic curve prime finite field with the specified prime p.

Public methods
open Boolean
equals(other: Any?)

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!

Returns the prime p of this prime finite field.

open Int

Returns a hash code value for this prime finite field.

Public constructors

ECFieldFp

Added in API level 1
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

Added in API level 1
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

Added in API level 1
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

Added in API level 1
open fun getP(): BigInteger!

Returns the prime p of this prime finite field.

Return
BigInteger! the prime.

hashCode

Added in API level 1
open fun hashCode(): Int

Returns a hash code value for this prime finite field.

Return
Int a hash code value.