public class

ECParameterSpec

extends Object
implements AlgorithmParameterSpec
java.lang.Object
   ↳ org.bouncycastle.jce.spec.ECParameterSpec
Known Direct Subclasses

Class Overview

basic domain parameters for an Elliptic Curve public or private key.

Summary

Public Constructors
ECParameterSpec(ECCurve curve, ECPoint G, BigInteger n)
ECParameterSpec(ECCurve curve, ECPoint G, BigInteger n, BigInteger h)
ECParameterSpec(ECCurve curve, ECPoint G, BigInteger n, BigInteger h, byte[] seed)
Public Methods
boolean equals(Object o)
ECCurve getCurve()
return the curve along which the base point lies.
ECPoint getG()
return the base point we are using for these domain parameters.
BigInteger getH()
return the cofactor H to the order of G.
BigInteger getN()
return the order N of G
byte[] getSeed()
return the seed used to generate this curve (if available).
int hashCode()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ECParameterSpec (ECCurve curve, ECPoint G, BigInteger n)

public ECParameterSpec (ECCurve curve, ECPoint G, BigInteger n, BigInteger h)

public ECParameterSpec (ECCurve curve, ECPoint G, BigInteger n, BigInteger h, byte[] seed)

Public Methods

public boolean equals (Object o)

public ECCurve getCurve ()

return the curve along which the base point lies.

Returns
  • the curve

public ECPoint getG ()

return the base point we are using for these domain parameters.

Returns
  • the base point.

public BigInteger getH ()

return the cofactor H to the order of G.

Returns
  • the cofactor

public BigInteger getN ()

return the order N of G

Returns
  • the order

public byte[] getSeed ()

return the seed used to generate this curve (if available).

Returns
  • the random seed

public int hashCode ()