Interface SingleBlockDecryptor<T extends Parameters>

Type Parameters:
T - the parameters type for the decryptor's cipher..
All Superinterfaces:
SingleBlockCipher<T>
All Known Subinterfaces:
SingleBlockDecryptorUsingSecureRandom<T>

public interface SingleBlockDecryptor<T extends Parameters> extends SingleBlockCipher<T>
Base interface for a decryptor only able to decrypt a single block of data.
  • Method Details

    • decryptBlock

      byte[] decryptBlock(byte[] bytes, int offSet, int length) throws InvalidCipherTextException
      Decrypt a single block of data, returning the result.
      Parameters:
      bytes - array holding encrypted block.
      offSet - offset into bytes where encrypted data starts.
      length - the number of bytes of encrypted data in the bytes array.
      Returns:
      a byte array holding the decrypted data.
      Throws:
      InvalidCipherTextException - in the event the data is inappropriate for the cipher implemented.