Class ECFieldFp

java.lang.Object
java.security.spec.ECFieldFp
All Implemented Interfaces:
ECField

public class ECFieldFp
extends Object
implements ECField
The parameters specifying a prime finite field of an elliptic curve.
  • Constructor Summary

    Constructors
    Constructor Description
    ECFieldFp​(BigInteger p)
    Creates a new prime finite field of an elliptic curve with the specified prime p.
  • Method Summary

    Modifier and Type Method Description
    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.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ECFieldFp

      public ECFieldFp​(BigInteger p)
      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.
  • Method Details

    • getFieldSize

      public int getFieldSize()
      Returns the size of the finite field (in bits).
      Specified by:
      getFieldSize in interface ECField
      Returns:
      the size of the finite field (in bits).
    • getP

      public BigInteger getP()
      Returns the prime value p for this finite field.
      Returns:
      the prime value p for this finite field.
    • equals

      public boolean equals​(Object obj)
      Returns whether the specified object is equal to this finite field.
      Overrides:
      equals in class Object
      Parameters:
      obj - the object to compare to this finite field.
      Returns:
      true if the specified object is equal to this finite field, otherwise false.
      See Also:
      Object.hashCode()
    • hashCode

      public int hashCode()
      Returns the hashcode value for this finite field.
      Overrides:
      hashCode in class Object
      Returns:
      the hashcode value for this finite field.
      See Also:
      Object.equals(java.lang.Object)