com.ibm.crypto.fips.provider
Class AESParameters
- java.lang.Object
-
- java.security.AlgorithmParametersSpi
-
- com.ibm.crypto.fips.provider.AESParameters
-
public final class AESParameters extends java.security.AlgorithmParametersSpi
This class implements the parameter (IV) used with the AES algorithm in feedback-mode. IV is defined in the standards as follows:IV ::= OCTET STRING -- 16 octets
-
-
Constructor Summary
Constructors Constructor and Description AESParameters()
-
Method Summary
Methods Modifier and Type Method and Description protected byte[]
engineGetEncoded()
protected byte[]
engineGetEncoded(java.lang.String encodingMethod)
protected java.security.spec.AlgorithmParameterSpec
engineGetParameterSpec(java.lang.Class paramSpec)
protected void
engineInit(java.security.spec.AlgorithmParameterSpec paramSpec)
protected void
engineInit(byte[] encoded)
protected void
engineInit(byte[] encoded, java.lang.String decodingMethod)
protected java.lang.String
engineToString()
protected byte[]
internalGetEncoded()
protected byte[]
internalGetEncoded(java.lang.String encodingMethod)
protected java.security.spec.AlgorithmParameterSpec
internalGetParameterSpec(java.lang.Class paramSpec)
protected void
internalInit(java.security.spec.AlgorithmParameterSpec paramSpec)
protected void
internalInit(byte[] encoded)
protected void
internalInit(byte[] encoded, java.lang.String decodingMethod)
protected java.lang.String
internalToString()
-
-
-
Method Detail
-
engineInit
protected void engineInit(java.security.spec.AlgorithmParameterSpec paramSpec) throws java.security.spec.InvalidParameterSpecException
- Specified by:
engineInit
in classjava.security.AlgorithmParametersSpi
- Throws:
FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false.java.security.spec.InvalidParameterSpecException
-
internalInit
protected void internalInit(java.security.spec.AlgorithmParameterSpec paramSpec) throws java.security.spec.InvalidParameterSpecException
- Throws:
java.security.spec.InvalidParameterSpecException
-
engineInit
protected void engineInit(byte[] encoded) throws java.io.IOException
- Specified by:
engineInit
in classjava.security.AlgorithmParametersSpi
- Throws:
FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false.java.io.IOException
-
internalInit
protected void internalInit(byte[] encoded) throws java.io.IOException
- Throws:
java.io.IOException
-
engineInit
protected void engineInit(byte[] encoded, java.lang.String decodingMethod) throws java.io.IOException
- Specified by:
engineInit
in classjava.security.AlgorithmParametersSpi
- Throws:
FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false.java.io.IOException
-
internalInit
protected void internalInit(byte[] encoded, java.lang.String decodingMethod) throws java.io.IOException
- Throws:
java.io.IOException
-
engineGetParameterSpec
protected java.security.spec.AlgorithmParameterSpec engineGetParameterSpec(java.lang.Class paramSpec) throws java.security.spec.InvalidParameterSpecException
- Specified by:
engineGetParameterSpec
in classjava.security.AlgorithmParametersSpi
- Throws:
FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false.java.security.spec.InvalidParameterSpecException
-
internalGetParameterSpec
protected java.security.spec.AlgorithmParameterSpec internalGetParameterSpec(java.lang.Class paramSpec) throws java.security.spec.InvalidParameterSpecException
- Throws:
java.security.spec.InvalidParameterSpecException
-
engineGetEncoded
protected byte[] engineGetEncoded() throws java.io.IOException
- Specified by:
engineGetEncoded
in classjava.security.AlgorithmParametersSpi
- Throws:
FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false.java.io.IOException
-
internalGetEncoded
protected byte[] internalGetEncoded() throws java.io.IOException
- Throws:
java.io.IOException
-
engineGetEncoded
protected byte[] engineGetEncoded(java.lang.String encodingMethod) throws java.io.IOException
- Specified by:
engineGetEncoded
in classjava.security.AlgorithmParametersSpi
- Throws:
FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false.java.io.IOException
-
internalGetEncoded
protected byte[] internalGetEncoded(java.lang.String encodingMethod) throws java.io.IOException
- Throws:
java.io.IOException
-
engineToString
protected java.lang.String engineToString()
- Specified by:
engineToString
in classjava.security.AlgorithmParametersSpi
- Throws:
FIPSRuntimeException
- if SelfTest.isFipsRunnable returns false.
-
internalToString
protected java.lang.String internalToString()
-
-