Class BcAEADUtil.PGPAeadInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.bouncycastle.openpgp.operator.bc.BcAEADUtil.PGPAeadInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Enclosing class:
- BcAEADUtil
protected static class BcAEADUtil.PGPAeadInputStream extends java.io.InputStream
-
-
Constructor Summary
Constructors Constructor Description PGPAeadInputStream(boolean isV5StyleAEAD, java.io.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()intread()intread(byte[] b, int off, int len)longskip(long n)
-
-
-
Constructor Detail
-
PGPAeadInputStream
public PGPAeadInputStream(boolean isV5StyleAEAD, java.io.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 java.io.IOExceptionInputStream 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:
java.io.IOException
-
-
Method Detail
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
skip
public long skip(long n) throws java.io.IOException- Overrides:
skipin classjava.io.InputStream- Throws:
java.io.IOException
-
available
public int available() throws java.io.IOException- Overrides:
availablein classjava.io.InputStream- Throws:
java.io.IOException
-
-