public class SHA224withDSAParameterGenerator extends SHA2withDSAParameterGenerator
This class represents a DSA parameter generator that uses the SHA-224 hash algorithm for generating DSA parameters p, q and r (prime modulus, prime divisor and generator, respectively) according to DSA FIPS 186-3.
This generator may be initialized
with the desired prime modulus and prime divisor length (L and N, respectively).
Notice that FIPS 186-3 (June 2009) allows the following (L,N) pairs to may be used:
If this generator is used without explicit initialization by default 2048 is used as the bit length of the prime modulus L. The default length of the prime divisor N is set to the output length of the SHA-224 hash algorithm (224 bits).
For explictly specifying prime modulus and prime divisor length when
initializing
this
DSA parameter generator use a SHA2withDSAGenParameterSpec
object, e.g.:
int L = 2048; int N = 224; SHA2withDSAGenParameterSpec genParamSpec = new SHA2withDSAGenParameterSpec(L, N); AlgorithmParameterGenerator generator = AlgorithmParameterGenerator.getInstance("SHA224withDSA", "IAIK"); SecureRandom random = ...; generator.init(genParamSpec, random); AlgortithmParameters params = generator.generateParameters();
SHA2withDSAGenParameterSpec
,
SHA256withDSAParameterGenerator
Constructor and Description |
---|
SHA224withDSAParameterGenerator()
Default constructor.
|
engineGenerateParameters, engineInit, engineInit, validateParameters