Package org.bouncycastle.crypto.fips
Class FipsDSA.DomainGenParameters
java.lang.Object
org.bouncycastle.crypto.fips.FipsParameters
org.bouncycastle.crypto.fips.FipsDSA.DomainGenParameters
- All Implemented Interfaces:
Parameters
- Enclosing class:
FipsDSA
Parameters for DSA domain parameter generation.
-
Constructor Summary
ConstructorsConstructorDescriptionDomainGenParameters(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.Construct from initial prime values, this will do a random construction of G.DomainGenParameters(BigInteger p, 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. -
Method Summary
Methods inherited from class org.bouncycastle.crypto.fips.FipsParameters
getAlgorithm
-
Constructor Details
-
DomainGenParameters
public DomainGenParameters(int strength) Construct just from strength (L) with a default value for N (160 for 1024, 256 for greater) and a default certainty.- Parameters:
strength- desired length of prime P in bits (the effective key size).
-
DomainGenParameters
public DomainGenParameters(int strength, int certainty) Construct just from strength (L) with a default value for N (160 for 1024, 256 for greater).- Parameters:
strength- desired length of prime P in bits (the effective key size).certainty- certainty level for prime number generation.
-
DomainGenParameters
public DomainGenParameters(int L, int N, int certainty) Construct without a usage index, this will do a random construction of G.- Parameters:
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.
-
DomainGenParameters
public 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.- Parameters:
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.
-
DomainGenParameters
Construct from initial prime values, this will do a random construction of G.- Parameters:
p- the prime P.q- the prime Q.
-
DomainGenParameters
Construct for a specific usage index and initial prime values - this has the effect of using verifiable canonical generation of G.- Parameters:
p- the prime P.q- the prime Q.seed- seed used in the generation of (p, q).usageIndex- a valid usage index.
-