Class ConcatenatingAESEngine

java.lang.Object
org.sejda.sambox.encryption.ConcatenatingAESEngine

public class ConcatenatingAESEngine extends Object
AES implementation of a EncryptionAlgorithmEngine that concatenates the results to the initialization vectors as required by Algorithm 1 and 1A. A random IV is created for those methods that don't take one as parameter
Author:
Andrea Vacondio
  • Method Details

    • encryptStream

      public InputStream encryptStream(InputStream data, byte[] key)
    • encryptStream

      public InputStream encryptStream(InputStream data, byte[] key, byte[] iv)
    • encryptBytes

      public byte[] encryptBytes(byte[] data, byte[] key)
    • encryptBytes

      public byte[] encryptBytes(byte[] data, byte[] key, byte[] iv)