java.lang.Object
java.security.AlgorithmParameterGeneratorSpi
com.ibm.crypto.hdwrCCA.provider.DSAParameterGenerator
This class generates parameters for the DSA algorithm. It uses a default prime
modulus size of 1024 bits, which can be overwritten during initialization.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AlgorithmParameters
Generates the parameters.protected void
engineInit
(int size, SecureRandom random) Initializes the receiver with the specified parameter size and source of randomness.protected void
engineInit
(AlgorithmParameterSpec genParamSpec, SecureRandom random) Initializes this parameter generator with a set of algorithm-specific parameter generation values.
-
Constructor Details
-
DSAParameterGenerator
public DSAParameterGenerator()Constructs a new instance of this class.
-
-
Method Details
-
engineGenerateParameters
Generates the parameters.- Specified by:
engineGenerateParameters
in classAlgorithmParameterGeneratorSpi
- Returns:
- the new AlgorithmParameters object.
-
engineInit
protected void engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random) throws InvalidAlgorithmParameterException Initializes this parameter generator with a set of algorithm-specific parameter generation values.- Specified by:
engineInit
in classAlgorithmParameterGeneratorSpi
- Parameters:
genParamSpec
- the set of algorithm-specific parameter generation values.random
- the source of randomness.- Throws:
InvalidAlgorithmParameterException
- if the given parameter generation values are inappropriate for this parameter generator.
-
engineInit
Initializes the receiver with the specified parameter size and source of randomness.- Specified by:
engineInit
in classAlgorithmParameterGeneratorSpi
- Parameters:
size
- the strength (size of prime) in bits.random
- the source of randomness.
-