public class ECDomainParameters
extends java.lang.Object
Constructor and Description |
---|
ECDomainParameters(ECCurve curve,
ECPoint G,
java.math.BigInteger n)
Constructor that assumes the co-factor h is 1.
|
ECDomainParameters(ECCurve curve,
ECPoint G,
java.math.BigInteger n,
java.math.BigInteger h)
Constructor with explicit co-factor.
|
ECDomainParameters(ECCurve curve,
ECPoint G,
java.math.BigInteger n,
java.math.BigInteger h,
byte[] seed)
Constructor with explicit co-factor and generation seed.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
ECCurve |
getCurve()
Return the curve associated with these domain parameters.
|
ECPoint |
getG()
Return the base point associated with these domain parameters.
|
java.math.BigInteger |
getH()
Return the co-factor associated with these domain parameters.
|
java.math.BigInteger |
getInverseH()
Return the multiplicative inverse of H over the order N.
|
java.math.BigInteger |
getN()
Return the order associated with these domain parameters.
|
byte[] |
getSeed()
Return the generation seed associated with these domain parameters.
|
int |
hashCode() |
public ECDomainParameters(ECCurve curve, ECPoint G, java.math.BigInteger n)
curve
- the curve for these domain parameters.G
- the base point G for the domain parameters.n
- the order for the domain parameters.public ECDomainParameters(ECCurve curve, ECPoint G, java.math.BigInteger n, java.math.BigInteger h)
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.public ECDomainParameters(ECCurve curve, ECPoint G, java.math.BigInteger n, java.math.BigInteger h, byte[] seed)
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.public ECCurve getCurve()
public ECPoint getG()
public java.math.BigInteger getN()
public java.math.BigInteger getH()
public java.math.BigInteger getInverseH()
public byte[] getSeed()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object