Class COSFilterAESDecryptionDefault

All Implemented Interfaces:
Closeable, AutoCloseable

public class COSFilterAESDecryptionDefault extends ASBufferedInFilter
This filter decrypts data using AES cipher as described in Algorithm 1 of 7.6.2 of ISO 32000:2008.
Author:
Sergey Shemyakov
  • Constructor Details

    • COSFilterAESDecryptionDefault

      public COSFilterAESDecryptionDefault(ASInputStream stream, COSKey objectKey, byte[] encryptionKey, boolean decryptingCOSStream, ASAtom method) throws IOException, GeneralSecurityException
      Constructor.
      Parameters:
      stream - is stream with encrypted data.
      objectKey - contains object and generation numbers from object identifier for object that is being decrypted. If it is direct object, objectKey is taken from indirect object that contains it.
      encryptionKey - is encryption key that is calculated from user password and encryption dictionary.
      method - value of CFM key in crypt filter dictionary, should be AESV2 or AESV3.
      Throws:
      IOException
      GeneralSecurityException
  • Method Details