public interface DSAKeyPairGenerator
Modifier and Type | Method and Description |
---|---|
void |
initialize(DSAParams params,
SecureRandom random)
Initializes the key generator with the specified DSA parameters and
random bit source
|
void |
initialize(int modlen,
boolean genParams,
SecureRandom random)
Initializes the key generator to a give modulus.
|
void initialize(DSAParams params, SecureRandom random) throws InvalidParameterException
params
- The DSA parameters to userandom
- The random bit source to useInvalidParameterException
- If the parameters passed are not validvoid initialize(int modlen, boolean genParams, SecureRandom random) throws InvalidParameterException
genParams
value is true
then new base, prime, and subprime values
will be generated for the given modulus. If not, the pre-calculated
values will be used. If no pre-calculated values exist for the specified
modulus, an exception will be thrown. It is guaranteed that there will
always be pre-calculated values for all modulus values between 512 and
1024 bits inclusives.modlen
- The modulus lengthgenParams
- true
to generate new DSA parameters, false
otherwiserandom
- The random bit source to useInvalidParameterException
- If a parameter is invalid