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