public class DSAParametersGenerator extends Object
| Constructor and Description |
|---|
DSAParametersGenerator() |
| 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(int size,
int certainty,
SecureRandom random)
initialise the key generator.
|
public void init(int size,
int certainty,
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 DSAParameters generateParameters()
Note: can take a while...
Copyright © 2015. All rights reserved.