Interface BlockCipher.Encryptor

  • Enclosing interface:
    BlockCipher

    public static interface BlockCipher.Encryptor
    • Method Detail

      • encrypt

        byte[] encrypt​(byte[] plaintext,
                       byte[] AAD)
        Encrypts the plaintext.
        Parameters:
        plaintext - - starts at offset 0 of the input, and fills up the entire byte array.
        AAD - - Additional Authenticated Data for the encryption (ignored in case of CTR cipher)
        Returns:
        lengthAndCiphertext The first 4 bytes of the returned value are the ciphertext length (little endian int). The ciphertext starts at offset 4 and fills up the rest of the returned byte array. The ciphertext includes the nonce and (in case of GCM cipher) the tag, as detailed in the Parquet Modular Encryption specification.