protected static class BcAEADUtil.PGPAeadInputStream
extends java.io.InputStream
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
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.IOException
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 datajava.io.IOException
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException