|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.security.AlgorithmParametersSpi
|
+--com.ibm.crypto.fips.provider.DSAParameters
This class implements Digital Signature Algorithm paremters specified by com.ibm.crypto.fips.provider 186 standard.
| Field Summary | |
|---|---|
protected java.math.BigInteger |
g
|
protected java.math.BigInteger |
p
|
protected java.math.BigInteger |
q
|
| Constructor Summary | |
|---|---|
DSAParameters()
|
|
| Method Summary | |
|---|---|
protected byte[] |
engineGetEncoded()
Returns the parameters in encoded bytes. |
protected byte[] |
engineGetEncoded(java.lang.String encodingMethod)
Returns the parameters in encoded bytes with encoding method specified. |
protected java.security.spec.AlgorithmParameterSpec |
engineGetParameterSpec(java.lang.Class paramSpec)
Return the parameter spec used by this parameter instance. |
protected void |
engineInit(java.security.spec.AlgorithmParameterSpec paramSpec)
Initialize the DSAParameters by a DSAParameterSpec |
protected void |
engineInit(byte[] params)
Initialize the DSAParameters by encoded bytes |
protected void |
engineInit(byte[] params,
java.lang.String decodingMethod)
Initialize the DSAParameters by encoded bytes with the specified decoding method. |
protected java.lang.String |
engineToString()
|
protected byte[] |
internalGetEncoded()
Returns the parameters in encoded bytes. |
protected byte[] |
internalGetEncoded(java.lang.String encodingMethod)
Returns the parameters in encoded bytes with encoding method specified. |
protected java.security.spec.AlgorithmParameterSpec |
internalGetParameterSpec(java.lang.Class paramSpec)
Return the parameter spec used by this parameter instance. |
protected void |
internalInit(java.security.spec.AlgorithmParameterSpec paramSpec)
Initialize the DSAParameters by a DSAParameterSpec |
protected void |
internalInit(byte[] params)
Initialize the DSAParameters by encoded bytes |
protected void |
internalInit(byte[] params,
java.lang.String decodingMethod)
Initialize the DSAParameters by encoded bytes with the specified decoding method. |
protected java.lang.String |
internalToString()
|
boolean |
isFipsApproved()
Module identifies if the cryptographic operation (algorithm) is FIPS certified |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.math.BigInteger p
protected java.math.BigInteger q
protected java.math.BigInteger g
| Constructor Detail |
public DSAParameters()
| Method Detail |
public boolean isFipsApproved()
AlgorithmStatusisFipsApproved in interface AlgorithmStatusAlgorithmStatus.isFipsApproved()
protected void engineInit(java.security.spec.AlgorithmParameterSpec paramSpec)
throws java.security.spec.InvalidParameterSpecException
engineInit in class java.security.AlgorithmParametersSpiparamSpec - the DSA algorithm parameter spec for this instance.FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
protected void internalInit(java.security.spec.AlgorithmParameterSpec paramSpec)
throws java.security.spec.InvalidParameterSpecException
paramSpec - the DSA algorithm parameter spec for this instance.
protected void engineInit(byte[] params)
throws java.io.IOException
engineInit in class java.security.AlgorithmParametersSpiparams - the encoded bytes of the parameters.FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
protected void internalInit(byte[] params)
throws java.io.IOException
params - the encoded bytes of the parameters.
protected void engineInit(byte[] params,
java.lang.String decodingMethod)
throws java.io.IOException
engineInit in class java.security.AlgorithmParametersSpiparams - the encoded bytes of the parameters.decodingMethod - the decoding method to be used.FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
protected void internalInit(byte[] params,
java.lang.String decodingMethod)
throws java.io.IOException
params - the encoded bytes of the parameters.decodingMethod - the decoding method to be used.
protected java.security.spec.AlgorithmParameterSpec engineGetParameterSpec(java.lang.Class paramSpec)
throws java.security.spec.InvalidParameterSpecException
engineGetParameterSpec in class java.security.AlgorithmParametersSpiparamSpec - the parameter spec class to be returnedFIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
protected java.security.spec.AlgorithmParameterSpec internalGetParameterSpec(java.lang.Class paramSpec)
throws java.security.spec.InvalidParameterSpecException
paramSpec - the parameter spec class to be returned
protected byte[] engineGetEncoded()
throws java.io.IOException
engineGetEncoded in class java.security.AlgorithmParametersSpiFIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
protected byte[] internalGetEncoded()
throws java.io.IOException
protected byte[] engineGetEncoded(java.lang.String encodingMethod)
throws java.io.IOException
engineGetEncoded in class java.security.AlgorithmParametersSpiFIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
protected byte[] internalGetEncoded(java.lang.String encodingMethod)
throws java.io.IOException
FIPSRuntimeException - if SelfTest.isFipsRunnable returns false.protected java.lang.String engineToString()
engineToString in class java.security.AlgorithmParametersSpiprotected java.lang.String internalToString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||