Skip to content

Most visited

Recently visited

navigation
Added in API level 1

ECFieldFp

public class ECFieldFp
extends Object implements ECField

java.lang.Object
   ↳ java.security.spec.ECFieldFp


The parameters specifying a prime finite field of an elliptic curve.

Summary

Public constructors

ECFieldFp(BigInteger p)

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

Public methods

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.

Inherited methods

From class java.lang.Object
From interface java.security.spec.ECField

Public constructors

ECFieldFp

Added in API level 1
ECFieldFp (BigInteger p)

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

Parameters
p BigInteger: the prime value p.
Throws
IllegalArgumentException if p <= zero.

Public methods

equals

Added in API level 1
boolean equals (Object obj)

Returns whether the specified object is equal to this finite field.

Parameters
obj Object: the object to compare to this finite field.
Returns
boolean true if the specified object is equal to this finite field, otherwise false.

getFieldSize

Added in API level 1
int getFieldSize ()

Returns the size of the finite field (in bits).

Returns
int the size of the finite field (in bits).

getP

Added in API level 1
BigInteger getP ()

Returns the prime value p for this finite field.

Returns
BigInteger the prime value p for this finite field.

hashCode

Added in API level 1
int hashCode ()

Returns the hashcode value for this finite field.

Returns
int the hashcode value for this finite field.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.