Class FipsKeyUnwrapper<T extends Parameters>

java.lang.Object
org.bouncycastle.crypto.fips.FipsKeyUnwrapper<T>
Type Parameters:
T - the parameters type associated with the final implementation of this key unwrapper.
All Implemented Interfaces:
KeyUnwrapper<T>
Direct Known Subclasses:
FipsKeyUnwrapperUsingSecureRandom

public abstract class FipsKeyUnwrapper<T extends Parameters> extends Object implements KeyUnwrapper<T>
Base class for the approved mode KeyUnwrapper implementations.
  • Method Details

    • unwrap

      public abstract byte[] unwrap(byte[] in, int inOff, int inLen) throws InvalidWrappingException
      Description copied from interface: KeyUnwrapper
      Return the unwrapped byte encoding of a key.
      Specified by:
      unwrap in interface KeyUnwrapper<T extends Parameters>
      Parameters:
      in - input data array.
      inOff - offset into data array wrapped key starts at.
      inLen - length of wrapped key data.
      Returns:
      the unwrapped byte encoding of the key.
      Throws:
      InvalidWrappingException - if the wrapping cannot be processed.