Class ECFieldFp

  • All Implemented Interfaces:
    ECField

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

      • 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 Detail

      • 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()