Class DESedeTR31KeyWrap

java.lang.Object
javax.crypto.CipherSpi
com.ibm.crypto.hdwrCCA.provider.DESedeTR31KeyWrap

public final class DESedeTR31KeyWrap extends CipherSpi
This class implements hardware TR-31 KeyBlock DESede key wrapping. This function enables secure key exchange between dissimilar platforms, such as z/OS and a non-z/OS system. It allows a DESede EXPORTER Key Encrypting Key (KEK) to wrap a DES or DESede CKDSLabel or ICSFToken key to an ANSI TR-31 KeyBlock and allows a DESede IMPORTER KEK to unwrap a DES or DESede key from an ANSI TR-31 KeyBlock to a CKDSLabel or ICSFToken key.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of hardware DESede TR-31 KeyBlock key wrapping cipher.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected byte[]
    engineDoFinal(byte[] input, int inputOffset, int inputLen)
    Encrypting or decrypting data in a single-part operation, or finishing a multiple-part operation is not supported.
    protected int
    engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)
    Encrypting or decrypting data in a single-part operation, or finishing a multiple-part operation is not supported.
    protected int
    This operation is not supported.
    protected byte[]
    Returns the initialization vector (IV) used with this cipher.
    protected int
    Returns the key size of the given key object.
    protected int
    engineGetOutputSize(int inputLen)
    Returns the length in bytes of the required output buffer.
    Returns the parameters used with this cipher.
    protected void
    engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)
     
    protected void
    engineInit(int opmode, Key key, SecureRandom random)
    Initializes this cipher with a key and a source of randomness.
    protected void
    engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)
    Initializes this cipher with a key, operation-specific parameters, and a source of randomness.
    protected void
    Setting the cipher mode is not supported.
    protected void
    engineSetPadding(String paddingScheme)
    Setting the cipher padding mechanism is not supported.
    protected Key
    engineUnwrap(byte[] TR31KeyBlock, String wrappedKeyAlgorithm, int wrappedKeyType)
    Unwrap a DES or DESede key that was previously wrapped in a TR-31 KeyBlock.
    protected byte[]
    engineUpdate(byte[] input, int inputOffset, int inputLen)
    Continuing a multiple-part encryption or decryption operation is not supported.
    protected int
    engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)
    Continuing a multiple-part encryption or decryption operation is not supported.
    protected byte[]
    Wrap a CCA hardware DES or DESede key.

    Methods inherited from class javax.crypto.CipherSpi

    engineDoFinal, engineUpdate, engineUpdateAAD, engineUpdateAAD

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait