Class BcAEADUtil.PGPAeadInputStream
java.lang.Object
java.io.InputStream
org.bouncycastle.openpgp.operator.bc.BcAEADUtil.PGPAeadInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
BcAEADUtil
-
Constructor Summary
ConstructorsConstructorDescriptionPGPAeadInputStream
(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) InputStream for decrypting AEAD encrypted data. -
Method Summary
Methods inherited from class java.io.InputStream
close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skipNBytes, transferTo
-
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 InputStreamc
- decryption ciphersecretKey
- decryption keyiv
- initialization vectorencAlgorithm
- symmetric cipher algorithmaeadAlgorithm
- AEAD algorithmchunkSize
- chunk size of the AEAD encryptionaaData
- associated data- Throws:
IOException
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-