com.ibm.crypto.fips.provider

Class DSAParameters

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

  1. public class DSAParameters
  2. extends java.security.AlgorithmParametersSpi
  3. implements AlgorithmStatus
This class implements Digital Signature Algorithm paremters specified by com.ibm.crypto.fips.provider 186 standard.
Version:
1.00, 07/20/99
Author:
Joyce Leung

Field Summary

Modifier and Type Field and Description
  1. protected
  2. java.math.BigInteger
g
  1. protected
  2. java.math.BigInteger
p
  1. protected
  2. java.math.BigInteger
q

Constructor Summary

Constructor and Description
DSAParameters()

Method Summary

Modifier and Type Method and Description
  1. protected
  2. byte[]
engineGetEncoded()
Returns the parameters in encoded bytes.
  1. protected
  2. byte[]
engineGetEncoded(java.lang.String encodingMethod)
Returns the parameters in encoded bytes with encoding method specified.
  1. protected
  2. java.security.spec.AlgorithmParameterSpec
engineGetParameterSpec(java.lang.Class paramSpec)
Return the parameter spec used by this parameter instance.
  1. protected
  2. void
engineInit(java.security.spec.AlgorithmParameterSpec paramSpec)
Initialize the DSAParameters by a DSAParameterSpec
  1. protected
  2. void
engineInit(byte[] params)
Initialize the DSAParameters by encoded bytes
  1. protected
  2. void
engineInit(byte[] params,java.lang.String decodingMethod)
Initialize the DSAParameters by encoded bytes with the specified decoding method.
  1. protected
  2. java.lang.String
engineToString()
  1. protected
  2. byte[]
internalGetEncoded()
Returns the parameters in encoded bytes.
  1. protected
  2. byte[]
internalGetEncoded(java.lang.String encodingMethod)
Returns the parameters in encoded bytes with encoding method specified.
  1. protected
  2. java.security.spec.AlgorithmParameterSpec
internalGetParameterSpec(java.lang.Class paramSpec)
Return the parameter spec used by this parameter instance.
  1. protected
  2. void
internalInit(java.security.spec.AlgorithmParameterSpec paramSpec)
Initialize the DSAParameters by a DSAParameterSpec
  1. protected
  2. void
internalInit(byte[] params)
Initialize the DSAParameters by encoded bytes
  1. protected
  2. void
internalInit(byte[] params,java.lang.String decodingMethod)
Initialize the DSAParameters by encoded bytes with the specified decoding method.
  1. protected
  2. java.lang.String
internalToString()
  1. boolean
isFipsApproved()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

p

  1. protected java.math.BigInteger p

q

  1. protected java.math.BigInteger q

g

  1. protected java.math.BigInteger g

Constructor Detail

DSAParameters

  1. public DSAParameters()

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:

engineInit

  1. protected void engineInit(java.security.spec.AlgorithmParameterSpec paramSpec)
  2. throws java.security.spec.InvalidParameterSpecException
Initialize the DSAParameters by a DSAParameterSpec
Specified by:
engineInit in class java.security.AlgorithmParametersSpi
Parameters:
paramSpec - the DSA algorithm parameter spec for this instance.
Throws:
FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
java.security.spec.InvalidParameterSpecException

internalInit

  1. protected void internalInit(java.security.spec.AlgorithmParameterSpec paramSpec)
  2. throws java.security.spec.InvalidParameterSpecException
Initialize the DSAParameters by a DSAParameterSpec
Parameters:
paramSpec - the DSA algorithm parameter spec for this instance.
Throws:
java.security.spec.InvalidParameterSpecException

engineInit

  1. protected void engineInit(byte[] params)
  2. throws java.io.IOException
Initialize the DSAParameters by encoded bytes
Specified by:
engineInit in class java.security.AlgorithmParametersSpi
Parameters:
params - the encoded bytes of the parameters.
Throws:
FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
java.io.IOException

internalInit

  1. protected void internalInit(byte[] params)
  2. throws java.io.IOException
Initialize the DSAParameters by encoded bytes
Parameters:
params - the encoded bytes of the parameters.
Throws:
java.io.IOException

engineInit

  1. protected void engineInit(byte[] params,
  2. java.lang.String decodingMethod)
  3. throws java.io.IOException
Initialize the DSAParameters by encoded bytes with the specified decoding method.
Specified by:
engineInit in class java.security.AlgorithmParametersSpi
Parameters:
params - the encoded bytes of the parameters.
decodingMethod - the decoding method to be used.
Throws:
FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
java.io.IOException

internalInit

  1. protected void internalInit(byte[] params,
  2. java.lang.String decodingMethod)
  3. throws java.io.IOException
Initialize the DSAParameters by encoded bytes with the specified decoding method.
Parameters:
params - the encoded bytes of the parameters.
decodingMethod - the decoding method to be used.
Throws:
java.io.IOException

engineGetParameterSpec

  1. protected java.security.spec.AlgorithmParameterSpec engineGetParameterSpec( java.lang.Class paramSpec)
  2. throws java.security.spec.InvalidParameterSpecException
Return the parameter spec used by this parameter instance.
Specified by:
engineGetParameterSpec in class java.security.AlgorithmParametersSpi
Parameters:
paramSpec - the parameter spec class to be returned
Returns:
AlgorithmParameterSpec the newly generated parameterSpec
Throws:
FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
java.security.spec.InvalidParameterSpecException

internalGetParameterSpec

  1. protected java.security.spec.AlgorithmParameterSpec internalGetParameterSpec( java.lang.Class paramSpec)
  2. throws java.security.spec.InvalidParameterSpecException
Return the parameter spec used by this parameter instance.
Parameters:
paramSpec - the parameter spec class to be returned
Returns:
AlgorithmParameterSpec the newly generated parameterSpec
Throws:
java.security.spec.InvalidParameterSpecException

engineGetEncoded

  1. protected byte[] engineGetEncoded( )
  2. throws java.io.IOException
Returns the parameters in encoded bytes.
Specified by:
engineGetEncoded in class java.security.AlgorithmParametersSpi
Returns:
byte[] the encoded parameters
Throws:
FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
java.io.IOException

internalGetEncoded

  1. protected byte[] internalGetEncoded( )
  2. throws java.io.IOException
Returns the parameters in encoded bytes.
Returns:
byte[] the encoded parameters
Throws:
java.io.IOException

engineGetEncoded

  1. protected byte[] engineGetEncoded( java.lang.String encodingMethod)
  2. throws java.io.IOException
Returns the parameters in encoded bytes with encoding method specified.
Specified by:
engineGetEncoded in class java.security.AlgorithmParametersSpi
Returns:
byte[] encoded parameters.
Throws:
FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
java.io.IOException

internalGetEncoded

  1. protected byte[] internalGetEncoded( java.lang.String encodingMethod)
  2. throws java.io.IOException
Returns the parameters in encoded bytes with encoding method specified.
Returns:
byte[] encoded parameters.
Throws:
FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
java.io.IOException

engineToString

  1. protected java.lang.String engineToString( )
Specified by:
engineToString in class java.security.AlgorithmParametersSpi

internalToString

  1. protected java.lang.String internalToString( )