Class BcAEADUtil.PGPAeadInputStream

java.lang.Object
java.io.InputStream
org.bouncycastle.openpgp.operator.bc.BcAEADUtil.PGPAeadInputStream
All Implemented Interfaces:
Closeable, AutoCloseable
Enclosing class:
BcAEADUtil

protected static class BcAEADUtil.PGPAeadInputStream extends InputStream
  • Constructor Details

    • PGPAeadInputStream

      public PGPAeadInputStream(boolean isV5StyleAEAD, InputStream in, org.bouncycastle.crypto.modes.AEADBlockCipher c, org.bouncycastle.crypto.params.KeyParameter secretKey, byte[] iv, int encAlgorithm, int aeadAlgorithm, int chunkSize, byte[] aaData) throws IOException
      InputStream for decrypting AEAD encrypted data.
      Parameters:
      isV5StyleAEAD - flavour of AEAD (OpenPGP v5 or v6)
      in - underlying InputStream
      c - decryption cipher
      secretKey - decryption key
      iv - initialization vector
      encAlgorithm - symmetric cipher algorithm
      aeadAlgorithm - AEAD algorithm
      chunkSize - chunk size of the AEAD encryption
      aaData - associated data
      Throws:
      IOException
  • Method Details