java.lang.Object
java.security.AlgorithmParametersSpi
com.ibm.crypto.hdwrCCA.provider.AESParameters
This class implements the parameters (IV) used with the AES algorithm in
feedback-mode. IV is defined in the standards as follows:
IV ::= OCTET STRING -- 16 octets
This documentation describes a Service Provider Interface. It is provided for implementation insight only. This class is not intended to be called directly by application developers. Please consult the 'Java Cryptography Architecture Standard' for details on how to use this interface through a public standard class.
- Note:
- Certain operations may require specific hardware or software, or specific key types. See the rest of this document and the z/OS Unique Considerations Hardware Crypto Reference Guide for more details. Unsupported operations and/or combinations may result in a RuntimeException Hardware Error.
java.security.AlgorithmParameters.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]Returns the initialization vector in DER encoding format.protected byte[]engineGetEncoded(String encodingMethod) Returns the initialization vector in DER encoding format.protected <T extends AlgorithmParameterSpec>
TengineGetParameterSpec(Class<T> paramSpec) Returns a (transparent) specification of this parameters object.protected voidengineInit(byte[] encoded) Imports the DER encoded parameters and decodes the initialization vector.protected voidengineInit(byte[] encoded, String decodingMethod) Imports the the DER encoded parameters and decodes the initialization vector.protected voidengineInit(AlgorithmParameterSpec paramSpec) Initializes this parameters object using the parameters specified inparamSpec.protected StringReturns a formatted string describing the parameters.
-
Constructor Details
-
AESParameters
public AESParameters()Constructor
-
-
Method Details
-
engineInit
Initializes this parameters object using the parameters specified inparamSpec.- Specified by:
engineInitin classAlgorithmParametersSpi- Parameters:
paramSpec- the AES parameter specification containing the initialization vector- Throws:
InvalidParameterSpecException- if the given parameter specification is inappropriate for the initialization of this parameter object, or if the initialization vector is not 16 bytes long.
-
engineInit
Imports the DER encoded parameters and decodes the initialization vector.- Specified by:
engineInitin classAlgorithmParametersSpi- Parameters:
encoded- the DER encoded initialization vector- Throws:
IOException- on decoding errors or if the initialization vector is not 16 bytes long.
-
engineInit
Imports the the DER encoded parameters and decodes the initialization vector. The specifieddecodingMethodis ignored.- Specified by:
engineInitin classAlgorithmParametersSpi- Parameters:
encoded- the DER encoded initialization vectordecodingMethod- the name of the decoding format, which will be ignored- Throws:
IOException- on decoding errors or if the initialization vector is not 16 bytes long.
-
engineGetParameterSpec
protected <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> paramSpec) throws InvalidParameterSpecException Returns a (transparent) specification of this parameters object.paramSpecidentifies the specification class in which the parameters should be returned.- Specified by:
engineGetParameterSpecin classAlgorithmParametersSpi- Parameters:
paramSpec- the specification class in which the parameters should be returned. Should bejavax.crypto.spec.IvParameterSpecor its subclass- Throws:
InvalidParameterSpecException- if the requested parameter specification is inappropriate for this parameter object.
-
engineGetEncoded
Returns the initialization vector in DER encoding format.- Specified by:
engineGetEncodedin classAlgorithmParametersSpi- Returns:
- DER encoded initialization vector.
- Throws:
IOException- on encoding errors.
-
engineGetEncoded
Returns the initialization vector in DER encoding format.- Specified by:
engineGetEncodedin classAlgorithmParametersSpi- Parameters:
encodingMethod- the name of the encoding format, which will be ignored- Returns:
- DER encoded initialization vector.
- Throws:
IOException- on encoding errors.
-
engineToString
Returns a formatted string describing the parameters.- Specified by:
engineToStringin classAlgorithmParametersSpi- Returns:
- a formatted string describing the parameters.
-