public static final class FipsDH.DomainGenParameters extends FipsParameters
Constructor and Description |
---|
DomainGenParameters(java.math.BigInteger p,
java.math.BigInteger q)
Construct from initial prime values, this will do a random construction of G.
|
DomainGenParameters(java.math.BigInteger p,
java.math.BigInteger q,
byte[] seed,
int usageIndex)
Construct for a specific usage index and initial prime values - this has the effect of using verifiable canonical generation of G.
|
DomainGenParameters(int strength)
Construct just from strength (L) with a default value for N (160 for 1024, 256 for greater)
and a default certainty.
|
DomainGenParameters(int strength,
int certainty)
Construct just from strength (L) with a default value for N (160 for 1024, 256 for greater).
|
DomainGenParameters(int L,
int N,
int certainty)
Construct without a usage index, this will do a random construction of G.
|
DomainGenParameters(int L,
int N,
int certainty,
int usageIndex)
Construct for a specific usage index - this has the effect of using verifiable canonical generation of G.
|
getAlgorithm
public DomainGenParameters(int strength)
strength
- desired length of prime P in bits (the effective key size).public DomainGenParameters(int strength, int certainty)
strength
- desired length of prime P in bits (the effective key size).certainty
- certainty level for prime number generation.public DomainGenParameters(int L, int N, int certainty)
L
- desired length of prime P in bits (the effective key size).N
- desired length of prime Q in bits.certainty
- certainty level for prime number generation.public DomainGenParameters(int L, int N, int certainty, int usageIndex)
L
- desired length of prime P in bits (the effective key size).N
- desired length of prime Q in bits.certainty
- certainty level for prime number generation.usageIndex
- a valid usage index.public DomainGenParameters(java.math.BigInteger p, java.math.BigInteger q)
p
- the prime P.q
- the prime Q.public DomainGenParameters(java.math.BigInteger p, java.math.BigInteger q, byte[] seed, int usageIndex)
p
- the prime P.q
- the prime Q.seed
- seed used in the generation of (p, q).usageIndex
- a valid usage index.