org.bouncycastle.jce.spec

Class ECParameterSpec

public class ECParameterSpec extends Object implements AlgorithmParameterSpec

basic domain parameters for an Elliptic Curve public or private key.
Constructor Summary
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)
Method Summary
booleanequals(Object o)
ECCurvegetCurve()
return the curve along which the base point lies.
ECPointgetG()
return the base point we are using for these domain parameters.
BigIntegergetH()
return the cofactor H to the order of G.
BigIntegergetN()
return the order N of G
byte[]getSeed()
return the seed used to generate this curve (if available).
inthashCode()

Constructor Detail

ECParameterSpec

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

ECParameterSpec

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

ECParameterSpec

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

Method Detail

equals

public boolean equals(Object o)

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.

getH

public BigInteger getH()
return the cofactor H to the order of G.

Returns: the cofactor

getN

public BigInteger getN()
return the order N of G

Returns: the order

getSeed

public byte[] getSeed()
return the seed used to generate this curve (if available).

Returns: the random seed

hashCode

public int hashCode()