public class DSAParametersGenerator
extends java.lang.Object
Constructor and Description |
---|
DSAParametersGenerator() |
DSAParametersGenerator(Digest digest) |
Modifier and Type | Method and Description |
---|---|
DSAParameters |
generateParameters()
which generates the p and g values from the given parameters,
returning the DSAParameters object.
|
void |
init(DSAParameterGenerationParameters params)
Initialise the key generator for DSA 2.
|
void |
init(int size,
int certainty,
java.security.SecureRandom random)
initialise the key generator.
|
public DSAParametersGenerator()
public DSAParametersGenerator(Digest digest)
public void init(int size, int certainty, java.security.SecureRandom random)
size
- size of the key (range 2^512 -> 2^1024 - 64 bit increments)certainty
- measure of robustness of prime (for FIPS 186-2 compliance this should be at least 80).random
- random byte source.public void init(DSAParameterGenerationParameters params)
Use this init method if you need to generate parameters for DSA 2 keys.
params
- DSA 2 key generation parameters.public DSAParameters generateParameters()
Note: can take a while...