org.bouncycastle.openpgp.operator.bc
Class BcAEADUtil.PGPAeadInputStream
java.lang.Object
|
+--java.io.InputStream
|
+--org.bouncycastle.openpgp.operator.bc.BcAEADUtil.PGPAeadInputStream
- Enclosing class:
- BcAEADUtil
- protected static class BcAEADUtil.PGPAeadInputStream
- extends java.io.InputStream
|
Constructor Summary |
BcAEADUtil.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. |
| Methods inherited from class java.io.InputStream |
close, mark, markSupported, read, reset |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BcAEADUtil.PGPAeadInputStream
public BcAEADUtil.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
- 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:
java.io.IOException -
read
public int read()
throws java.io.IOException
- Overrides:
read in class java.io.InputStream
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
- Overrides:
read in class java.io.InputStream
skip
public long skip(long n)
throws java.io.IOException
- Overrides:
skip in class java.io.InputStream
available
public int available()
throws java.io.IOException
- Overrides:
available in class java.io.InputStream