Interface SingleBlockEncryptor<T extends Parameters>

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

public interface SingleBlockEncryptor<T extends Parameters> extends SingleBlockCipher<T>
Base interface for a encryptor only able to encrypt a single block of data.
  • Method Details

    • encryptBlock

      byte[] encryptBlock(byte[] bytes, int offSet, int length) throws PlainInputProcessingException
      Encrypt a single block of data, returning the result.
      Parameters:
      bytes - array holding the data to be encrypted.
      offSet - offset into bytes where the data starts.
      length - the number of bytes of data in the bytes array.
      Returns:
      a byte array holding the encrypted result.
      Throws:
      PlainInputProcessingException - if there is an issue processing the input provided.