DSAKeyPairGeneratorpublic interface DSAKeyPairGenerator The interface for key generators that can generate DSA key pairs. |
Methods Summary |
---|
public void | initialize(java.security.interfaces.DSAParams params, java.security.SecureRandom random)Initializes this generator with the prime ({@code p}), subprime ({@code
q}), and base ({@code g}) values from the specified parameters.
| public void | initialize(int modlen, boolean genParams, java.security.SecureRandom random)Initializes this generator for the specified modulus length. Valid values
for the modulus length are the multiples of 8 between 512 and 1024.
The parameter {@code genParams} specifies whether this method should
generate new prime ({@code p}), subprime ({@code q}), and base ({@code g})
values or whether
it will use the pre-calculated values for the specified modulus
length. Default parameters are available for modulus lengths of 512 and 1024
bits.
|
|