com.ibm.crypto.fips.provider

Class DHParameterGenerator

  1. java.lang.Object
  2. extended byjava.security.AlgorithmParameterGeneratorSpi
  3. extended bycom.ibm.crypto.fips.provider.DHParameterGenerator
All implemented interfaces:
AlgorithmStatus

  1. public final class DHParameterGenerator
  2. extends java.security.AlgorithmParameterGeneratorSpi
  3. implements AlgorithmStatus

Constructor Summary

Constructor and Description
DHParameterGenerator()

Method Summary

Modifier and Type Method and Description
  1. protected
  2. java.security.AlgorithmParameters
engineGenerateParameters()
Generates the parameters.
  1. protected
  2. void
engineInit(java.security.spec.AlgorithmParameterSpec genParamSpec,java.security.SecureRandom random)
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.
  1. protected
  2. void
engineInit(int keysize,java.security.SecureRandom random)
Initializes this parameter generator for a certain keysize and source of randomness.
  1. protected
  2. java.security.AlgorithmParameters
internalGenerateParameters()
Generates the parameters.
  1. protected
  2. void
internalInit(java.security.spec.AlgorithmParameterSpec genParamSpec,java.security.SecureRandom random)
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.
  1. protected
  2. void
internalInit(int keysize,java.security.SecureRandom random)
Initializes this parameter generator for a certain keysize and source of randomness.
  1. boolean
isFipsApproved()
This function allows an application to verify the the algorithm is FIPS approved.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

DHParameterGenerator

  1. public DHParameterGenerator()

Method Detail

engineInit

  1. protected void engineInit(int keysize,
  2. java.security.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 java.security.AlgorithmParameterGeneratorSpi
Parameters:
keysize - the keysize (size of prime modulus) in bits
random - the source of randomness

internalInit

  1. protected void internalInit(int keysize,
  2. java.security.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.
Parameters:
keysize - the keysize (size of prime modulus) in bits
random - the source of randomness

isFipsApproved

  1. public boolean isFipsApproved()
This function allows an application to verify the the algorithm is FIPS approved.
Specified by:
See Also:

engineInit

  1. protected void engineInit(java.security.spec.AlgorithmParameterSpec genParamSpec,
  2. java.security.SecureRandom random)
  3. throws java.security.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 java.security.AlgorithmParameterGeneratorSpi
random - the source of randomness
Throws:
java.security.InvalidAlgorithmParameterException - if the given parameter generation values are inappropriate for this parameter generator

internalInit

  1. protected void internalInit(java.security.spec.AlgorithmParameterSpec genParamSpec,
  2. java.security.SecureRandom random)
  3. throws java.security.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.
random - the source of randomness
Throws:
java.security.InvalidAlgorithmParameterException - if the given parameter generation values are inappropriate for this parameter generator

engineGenerateParameters

  1. protected java.security.AlgorithmParameters engineGenerateParameters( )
Generates the parameters.
Specified by:
engineGenerateParameters in class java.security.AlgorithmParameterGeneratorSpi
Returns:
the new AlgorithmParameters object

internalGenerateParameters

  1. protected java.security.AlgorithmParameters internalGenerateParameters( )
Generates the parameters.
Returns:
the new AlgorithmParameters object