Class ECDomainParameters
java.lang.Object
org.bouncycastle.crypto.asymmetric.ECDomainParameters
- Direct Known Subclasses:
ECImplicitDomainParameters
,NamedECDomainParameters
Container class for Elliptic Curve domain parameters.
-
Constructor Summary
ConstructorsConstructorDescriptionECDomainParameters
(ECCurve curve, ECPoint G, BigInteger n) Constructor that assumes the co-factor h is 1.ECDomainParameters
(ECCurve curve, ECPoint G, BigInteger n, BigInteger h) Constructor with explicit co-factor.ECDomainParameters
(ECCurve curve, ECPoint G, BigInteger n, BigInteger h, byte[] seed) Constructor with explicit co-factor and generation seed. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getCurve()
Return the curve associated with these domain parameters.getG()
Return the base point associated with these domain parameters.getH()
Return the co-factor associated with these domain parameters.Return the multiplicative inverse of H over the order N.getN()
Return the order associated with these domain parameters.byte[]
getSeed()
Return the generation seed associated with these domain parameters.int
hashCode()
-
Constructor Details
-
ECDomainParameters
Constructor that assumes the co-factor h is 1.- Parameters:
curve
- the curve for these domain parameters.G
- the base point G for the domain parameters.n
- the order for the domain parameters.
-
ECDomainParameters
Constructor with explicit co-factor.- Parameters:
curve
- the curve for these domain parameters.G
- the base point G for the domain parameters.n
- the order for the domain parameters.h
- the co-factor.
-
ECDomainParameters
Constructor with explicit co-factor and generation seed.- Parameters:
curve
- the curve for these domain parameters.G
- the base point G for the domain parameters.n
- the order for the domain parameters.h
- the co-factor.seed
- the seed value used to generate the domain parameters.
-
-
Method Details
-
getCurve
Return the curve associated with these domain parameters.- Returns:
- the domain parameters' curve.
-
getG
Return the base point associated with these domain parameters.- Returns:
- the domain parameters' base point.
-
getN
Return the order associated with these domain parameters.- Returns:
- the domain parameters' order.
-
getH
Return the co-factor associated with these domain parameters.- Returns:
- the domain parameters' co-factor.
-
getInverseH
Return the multiplicative inverse of H over the order N.- Returns:
- inverse of H.
-
getSeed
public byte[] getSeed()Return the generation seed associated with these domain parameters.- Returns:
- the domain parameters' seed.
-
equals
-
hashCode
public int hashCode()
-