public class DHDomainParameters
extends java.lang.Object
Constructor and Description |
---|
DHDomainParameters(java.math.BigInteger p,
java.math.BigInteger g)
Minimal usable parameters.
|
DHDomainParameters(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g)
Minimal constructor for parameters able to be used to verify a public key.
|
DHDomainParameters(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
java.math.BigInteger j,
DHValidationParameters validation)
Standard constructor - the full X9.42 parameter set.
|
DHDomainParameters(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
int l)
Minimal constructor for parameters able to be used to verify a public key with a private value length.
|
DHDomainParameters(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
int l,
DHValidationParameters validation)
X9.42 parameters with private value length.
|
DHDomainParameters(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
int m,
int l)
Parameters which can verify a public key with private value lengths.
|
DHDomainParameters(java.math.BigInteger p,
java.math.BigInteger q,
java.math.BigInteger g,
int m,
int l,
java.math.BigInteger j,
DHValidationParameters validation)
Base constructor - the full domain parameter set.
|
DHDomainParameters(java.math.BigInteger p,
java.math.BigInteger g,
int l)
Minimal usable parameters with a private value length (PKCS#3).
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.math.BigInteger |
getG()
Return the generator of the multiplicative subgroup of order g.
|
java.math.BigInteger |
getJ()
Return the subgroup factor J, which satisifes the equation p=jq+1, if present.
|
int |
getL()
Return the private value length in bits - if set, zero otherwise
|
int |
getM()
Return the minimum length of the private value.
|
java.math.BigInteger |
getP()
Return the prime p defining the Galois field.
|
java.math.BigInteger |
getQ()
Return q, the prime factor of p - 1
|
DHValidationParameters |
getValidationParameters() |
int |
hashCode() |
public DHDomainParameters(java.math.BigInteger p, java.math.BigInteger g)
p
- the prime p defining the Galois field.g
- the generator of the multiplicative subgroup of order g.public DHDomainParameters(java.math.BigInteger p, java.math.BigInteger g, int l)
p
- the prime p defining the Galois field.g
- the generator of the multiplicative subgroup of order g.l
- the maximum bit length for the private value.public DHDomainParameters(java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger g)
p
- the prime p defining the Galois field.q
- specifies the prime factor of p - 1.g
- the generator of the multiplicative subgroup of order g.public DHDomainParameters(java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger g, int l)
p
- the prime p defining the Galois field.q
- specifies the prime factor of p - 1.g
- the generator of the multiplicative subgroup of order g.l
- the maximum bit length for the private value.public DHDomainParameters(java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger g, int m, int l)
p
- the prime p defining the Galois field.q
- specifies the prime factor of p - 1.g
- the generator of the multiplicative subgroup of order g.m
- the minimum bit length for the private value.l
- the maximum bit length for the private value.public DHDomainParameters(java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger g, java.math.BigInteger j, DHValidationParameters validation)
p
- the prime p defining the Galois field.q
- specifies the prime factor of p - 1.g
- the generator of the multiplicative subgroup of order g.j
- optionally specifies the value that satisfies the equation p = jq+1validation
- parameters for validating these domain parameters.public DHDomainParameters(java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger g, int l, DHValidationParameters validation)
p
- the prime p defining the Galois field.q
- specifies the prime factor of p - 1.g
- the generator of the multiplicative subgroup of order g.l
- the maximum bit length for the private value.validation
- parameters for validating these domain parameters.public DHDomainParameters(java.math.BigInteger p, java.math.BigInteger q, java.math.BigInteger g, int m, int l, java.math.BigInteger j, DHValidationParameters validation)
p
- the prime p defining the Galois field.q
- specifies the prime factor of p - 1.g
- the generator of the multiplicative subgroup of order g.m
- the minimum bit length for the private value.l
- the maximum bit length for the private value.j
- optionally specifies the value that satisfies the equation p = jq+1validation
- parameters for validating these domain parameters.public java.math.BigInteger getP()
public java.math.BigInteger getG()
public java.math.BigInteger getQ()
public java.math.BigInteger getJ()
public int getM()
public int getL()
public DHValidationParameters getValidationParameters()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object