Class NamedECDomainParameters
- java.lang.Object
-
- org.bouncycastle.crypto.asymmetric.ECDomainParameters
-
- org.bouncycastle.crypto.asymmetric.NamedECDomainParameters
-
public class NamedECDomainParameters extends ECDomainParameters
EC domain parameters associated with a specific object identifier.
-
-
Constructor Summary
Constructors Constructor Description NamedECDomainParameters(ASN1ObjectIdentifier id, ECCurve curve, ECPoint G, java.math.BigInteger n)
Constructor that assumes the co-factor h is 1.NamedECDomainParameters(ASN1ObjectIdentifier id, ECCurve curve, ECPoint G, java.math.BigInteger n, java.math.BigInteger h)
Constructor with explicit co-factor.NamedECDomainParameters(ASN1ObjectIdentifier id, ECCurve curve, ECPoint G, java.math.BigInteger n, java.math.BigInteger h, byte[] seed)
Constructor with explicit co-factor and generation seed.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
ASN1ObjectIdentifier
getID()
Return object identifier that identifies these parameters.int
hashCode()
-
Methods inherited from class org.bouncycastle.crypto.asymmetric.ECDomainParameters
getCurve, getG, getH, getInverseH, getN, getSeed
-
-
-
-
Constructor Detail
-
NamedECDomainParameters
public NamedECDomainParameters(ASN1ObjectIdentifier id, ECCurve curve, ECPoint G, java.math.BigInteger n)
Constructor that assumes the co-factor h is 1.- Parameters:
id
- the object identifier that represents these parameters.curve
- the curve for these domain parameters.G
- the base point G for the domain parameters.n
- the order for the domain parameters.
-
NamedECDomainParameters
public NamedECDomainParameters(ASN1ObjectIdentifier id, ECCurve curve, ECPoint G, java.math.BigInteger n, java.math.BigInteger h)
Constructor with explicit co-factor.- Parameters:
id
- the object identifier that represents these 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.
-
NamedECDomainParameters
public NamedECDomainParameters(ASN1ObjectIdentifier id, ECCurve curve, ECPoint G, java.math.BigInteger n, java.math.BigInteger h, byte[] seed)
Constructor with explicit co-factor and generation seed.- Parameters:
id
- the object identifier that represents these 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 Detail
-
getID
public ASN1ObjectIdentifier getID()
Return object identifier that identifies these parameters.- Returns:
- the OID that names this parameter set.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classECDomainParameters
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classECDomainParameters
-
-