Interface Wrapper

All Known Implementing Classes:
AESWrapEngine, DESedeWrapEngine, RFC3394WrapEngine

public interface Wrapper
  • Method Summary

    Modifier and Type Method Description
    String getAlgorithmName()
    Return the name of the algorithm the wrapper implements.
    void init​(boolean forWrapping, CipherParameters param)  
    byte[] unwrap​(byte[] in, int inOff, int inLen)  
    byte[] wrap​(byte[] in, int inOff, int inLen)  
  • Method Details

    • init

      void init​(boolean forWrapping, CipherParameters param)
    • getAlgorithmName

      String getAlgorithmName()
      Return the name of the algorithm the wrapper implements.
      Returns:
      the name of the algorithm the wrapper implements.
    • wrap

      byte[] wrap​(byte[] in, int inOff, int inLen)
    • unwrap

      byte[] unwrap​(byte[] in, int inOff, int inLen) throws InvalidCipherTextException
      Throws:
      InvalidCipherTextException