Interface Decryptor

All Known Implementing Classes:
AESDecryptor, CommonsCryptoAESDecryptor

@Public public interface Decryptor
Decryptors apply a cipher to an InputStream to recover plaintext.
  • Method Summary

    Modifier and Type
    Method
    Description
    Create a stream for decryption
    int
    Get the cipher's internal block size
    int
    Get the expected length for the initialization vector
    void
    Reset state, reinitialize with the key and iv
    void
    setIv(byte[] iv)
    Set the initialization vector
    void
    setKey(Key key)
    Set the secret key
  • Method Details

    • setKey

      void setKey(Key key)
      Set the secret key
    • getIvLength

      Get the expected length for the initialization vector
      Returns:
      the expected length for the initialization vector
    • getBlockSize

      Get the cipher's internal block size
      Returns:
      the cipher's internal block size
    • setIv

      void setIv(byte[] iv)
      Set the initialization vector
    • createDecryptionStream

      Create a stream for decryption
    • reset

      void reset()
      Reset state, reinitialize with the key and iv