Class X9ECParameters

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x9.X9ECParameters
All Implemented Interfaces:
ASN1Encodable, X9ObjectIdentifiers, Encodable

public class X9ECParameters extends ASN1Object implements X9ObjectIdentifiers
ASN.1 def for Elliptic-Curve ECParameters structure. See X9.62, for further details.
  • Constructor Details

  • Method Details

    • getInstance

      public static X9ECParameters getInstance(Object obj)
    • getCurve

      public ECCurve getCurve()
    • getG

      public ECPoint getG()
    • getN

      public BigInteger getN()
    • getH

      public BigInteger getH()
    • getSeed

      public byte[] getSeed()
    • hasSeed

      public boolean hasSeed()
    • getCurveEntry

      public X9Curve getCurveEntry()
      Return the ASN.1 entry representing the Curve.
      Returns:
      the X9Curve for the curve in these parameters.
    • getFieldIDEntry

      public X9FieldID getFieldIDEntry()
      Return the ASN.1 entry representing the FieldID.
      Returns:
      the X9FieldID for the FieldID in these parameters.
    • getBaseEntry

      public X9ECPoint getBaseEntry()
      Return the ASN.1 entry representing the base point G.
      Returns:
      the X9ECPoint for the base point in these parameters.
    • toASN1Primitive

      public ASN1Primitive toASN1Primitive()
      Produce an object suitable for an ASN1OutputStream.
        ECParameters ::= SEQUENCE {
            version         INTEGER { ecpVer1(1) } (ecpVer1),
            fieldID         FieldID {{FieldTypes}},
            curve           X9Curve,
            base            X9ECPoint,
            order           INTEGER,
            cofactor        INTEGER OPTIONAL
        }
       
      Specified by:
      toASN1Primitive in interface ASN1Encodable
      Specified by:
      toASN1Primitive in class ASN1Object
      Returns:
      a primitive representation of this object.