com.ibm.crypto.provider
Class DHParameterGenerator
java.lang.Object
java.security.AlgorithmParameterGeneratorSpi
com.ibm.crypto.provider.DHParameterGenerator
public final class DHParameterGenerator
- extends AlgorithmParameterGeneratorSpi
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DHParameterGenerator
public DHParameterGenerator()
engineInit
protected void engineInit(int keysize,
SecureRandom random)
- Initializes this parameter generator for a certain keysize
and source of randomness.
The keysize is specified as the size in bits of the prime modulus.
- Specified by:
engineInit in class AlgorithmParameterGeneratorSpi
- Parameters:
keysize - the keysize (size of prime modulus) in bitsrandom - the source of randomness
engineInit
protected void engineInit(AlgorithmParameterSpec genParamSpec,
SecureRandom random)
throws InvalidAlgorithmParameterException
- Initializes this parameter generator with a set of parameter
generation values, which specify the size of the prime modulus and
the size of the random exponent, both in bits.
- Specified by:
engineInit in class AlgorithmParameterGeneratorSpi
- Parameters:
params - the set of parameter generation valuesrandom - the source of randomness
- Throws:
InvalidAlgorithmParameterException - if the given parameter
generation values are inappropriate for this parameter generator
engineGenerateParameters
protected AlgorithmParameters engineGenerateParameters()
- Generates the parameters.
- Specified by:
engineGenerateParameters in class AlgorithmParameterGeneratorSpi
- Returns:
- the new AlgorithmParameters object