to top
Android APIs
public class

ECFieldFp

extends Object
implements ECField
java.lang.Object
   ↳ java.security.spec.ECFieldFp

Class Overview

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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.security.spec.ECField

Public Constructors

public ECFieldFp (BigInteger p)

Since: API Level 1

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

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

Public Methods

public boolean equals (Object obj)

Since: API Level 1

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

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

public int getFieldSize ()

Since: API Level 1

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

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

public BigInteger getP ()

Since: API Level 1

Returns the prime value p for this finite field.

Returns
  • the prime value p for this finite field.

public int hashCode ()

Since: API Level 1

Returns the hashcode value for this finite field.

Returns
  • the hashcode value for this finite field.