com.ibm.crypto.fips.provider

Class DSAParameterGenerator

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

  1. public class DSAParameterGenerator
  2. extends java.security.AlgorithmParameterGeneratorSpi
  3. implements AlgorithmStatus
This class generates parameters for the DSA signature.
Author:
Joyce Leung

Constructor Summary

Constructor and Description
DSAParameterGenerator()
Constructs a new instance of this class.

Method Summary

Modifier and Type Method and Description
  1. protected
  2. java.security.AlgorithmParameters
engineGenerateParameters()
Answers the newly generated parameters.
  1. protected
  2. void
engineInit(java.security.spec.AlgorithmParameterSpec genParamSpec,java.security.SecureRandom random)
Initializes the receiver with the specified parameters and source of randomness.
  1. protected
  2. void
engineInit(int size,java.security.SecureRandom random)
Initializes the receiver with the specified parameter size and source of randomness.
  1. protected
  2. java.security.AlgorithmParameters
internalGenerateParameters()
Answers the newly generated parameters.
  1. protected
  2. void
internalInit(java.security.spec.AlgorithmParameterSpec genParamSpec,java.security.SecureRandom random)
Initializes the receiver with the specified parameters and source of randomness.
  1. protected
  2. void
internalInit(int size,java.security.SecureRandom random)
Initializes the receiver with the specified parameter size and source of randomness.
  1. boolean
isFipsApproved()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

DSAParameterGenerator

  1. public DSAParameterGenerator()
Constructs a new instance of this class.

Method Detail

isFipsApproved

  1. public boolean isFipsApproved()
Description copied from interface: AlgorithmStatus
Module identifies if the cryptographic operation (algorithm) is FIPS certified
Specified by:
See Also:

engineGenerateParameters

  1. protected java.security.AlgorithmParameters engineGenerateParameters( )
Answers the newly generated parameters.
Specified by:
engineGenerateParameters in class java.security.AlgorithmParameterGeneratorSpi
Returns:
AlgorithmParameters the newly generated parameters.
Throws:
FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.

internalGenerateParameters

  1. protected java.security.AlgorithmParameters internalGenerateParameters( )
Answers the newly generated parameters.
Returns:
AlgorithmParameters the newly generated parameters.

engineInit

  1. protected void engineInit(java.security.spec.AlgorithmParameterSpec genParamSpec,
  2. java.security.SecureRandom random)
  3. throws java.security.InvalidAlgorithmParameterException
Initializes the receiver with the specified parameters and source of randomness.
Specified by:
engineInit in class java.security.AlgorithmParameterGeneratorSpi
Parameters:
genParamSpec - AlgorithmParameterSpec parameters for this algorithm
random - SecureRandom New secure random to use
Throws:
FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
java.security.InvalidAlgorithmParameterException

internalInit

  1. protected void internalInit(java.security.spec.AlgorithmParameterSpec genParamSpec,
  2. java.security.SecureRandom random)
  3. throws java.security.InvalidAlgorithmParameterException
Initializes the receiver with the specified parameters and source of randomness.
Parameters:
genParamSpec - AlgorithmParameterSpec parameters for this algorithm
random - SecureRandom New secure random to use
Throws:
java.security.InvalidAlgorithmParameterException

engineInit

  1. protected void engineInit(int size,
  2. java.security.SecureRandom random)
Initializes the receiver with the specified parameter size and source of randomness.
Specified by:
engineInit in class java.security.AlgorithmParameterGeneratorSpi
Parameters:
size - int Size of the parameters
random - SecureRandom New secure random to use
Throws:
FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.

internalInit

  1. protected void internalInit(int size,
  2. java.security.SecureRandom random)
Initializes the receiver with the specified parameter size and source of randomness.
Parameters:
size - int Size of the parameters
random - SecureRandom New secure random to use