org.bouncycastle.jce.spec

Class ECParameterSpec

Implemented Interfaces:
AlgorithmParameterSpec
Known Direct Subclasses:
ECNamedCurveParameterSpec

public class ECParameterSpec
extends java.lang.Object
implements AlgorithmParameterSpec

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

Constructor Summary

ECParameterSpec(org.bouncycastle.math.ec.ECCurve curve, org.bouncycastle.math.ec.ECPoint G, BigInteger n)
ECParameterSpec(org.bouncycastle.math.ec.ECCurve curve, org.bouncycastle.math.ec.ECPoint G, BigInteger n, BigInteger h)
ECParameterSpec(org.bouncycastle.math.ec.ECCurve curve, org.bouncycastle.math.ec.ECPoint G, BigInteger n, BigInteger h, byte[] seed)

Method Summary

boolean
equals(Object o)
org.bouncycastle.math.ec.ECCurve
getCurve()
return the curve along which the base point lies.
org.bouncycastle.math.ec.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()

Constructor Details

ECParameterSpec

public ECParameterSpec(org.bouncycastle.math.ec.ECCurve curve,
                       org.bouncycastle.math.ec.ECPoint G,
                       BigInteger n)

ECParameterSpec

public ECParameterSpec(org.bouncycastle.math.ec.ECCurve curve,
                       org.bouncycastle.math.ec.ECPoint G,
                       BigInteger n,
                       BigInteger h)

ECParameterSpec

public ECParameterSpec(org.bouncycastle.math.ec.ECCurve curve,
                       org.bouncycastle.math.ec.ECPoint G,
                       BigInteger n,
                       BigInteger h,
                       byte[] seed)

Method Details

equals

public boolean equals(Object o)

getCurve

public org.bouncycastle.math.ec.ECCurve getCurve()
return the curve along which the base point lies.
Returns:
the curve

getG

public org.bouncycastle.math.ec.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()