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
ConstructorsConstructorDescriptionECParameterSpec(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 TypeMethodDescriptionbooleangetCurve()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).inthashCode()
-
Constructor Details
-
ECParameterSpec
-
ECParameterSpec
-
ECParameterSpec
-
-
Method Details
-
getCurve
-
getG
return the base point we are using for these domain parameters.- Returns:
- the base point.
-
getN
-
getH
-
getSeed
public byte[] getSeed()return the seed used to generate this curve (if available).- Returns:
- the random seed
-
equals
-
hashCode
-