Class ECParameterSpec

java.lang.Object
org.bouncycastle.jce.spec.ECParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec
Direct Known Subclasses:
ECNamedCurveParameterSpec

public class ECParameterSpec extends Object implements AlgorithmParameterSpec
basic domain parameters for an Elliptic Curve public or private key.
  • Constructor Details

  • Method Details

    • getCurve

      public ECCurve getCurve()
      return the curve along which the base point lies.
      Returns:
      the curve
    • getG

      public ECPoint getG()
      return the base point we are using for these domain parameters.
      Returns:
      the base point.
    • getN

      public BigInteger getN()
      return the order N of G
      Returns:
      the order
    • getH

      public BigInteger getH()
      return the cofactor H to the order of G.
      Returns:
      the cofactor
    • getSeed

      public byte[] getSeed()
      return the seed used to generate this curve (if available).
      Returns:
      the random seed
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object