Package org.bouncycastle.jce.spec
Class ECParameterSpec
java.lang.Object
org.bouncycastle.jce.spec.ECParameterSpec
- All Implemented Interfaces:
AlgorithmParameterSpec
- Direct Known Subclasses:
ECNamedCurveParameterSpec
basic domain parameters for an Elliptic Curve public or private key.
-
Constructor Summary
ConstructorDescriptionECParameterSpec
(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
Modifier and TypeMethodDescriptionboolean
getCurve()
return the curve along which the base point lies.getG()
return the base point we are using for these domain parameters.getH()
return the cofactor H to the order of G.getN()
return the order N of Gbyte[]
getSeed()
return the seed used to generate this curve (if available).int
hashCode()
-
Constructor Details
-
ECParameterSpec
-
ECParameterSpec
-
ECParameterSpec
-
-
Method Details
-
getCurve
return the curve along which the base point lies.- Returns:
- the curve
-
getG
return the base point we are using for these domain parameters.- Returns:
- the base point.
-
getN
return the order N of G- Returns:
- the order
-
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
-
hashCode
public int hashCode()
-