Class BcAEADUtil.PGPAeadOutputStream
java.lang.Object
java.io.OutputStream
org.bouncycastle.openpgp.operator.bc.BcAEADUtil.PGPAeadOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Enclosing class:
BcAEADUtil
-
Constructor Summary
ConstructorDescriptionPGPAeadOutputStream
(boolean isV5StyleAEAD, OutputStream out, org.bouncycastle.crypto.modes.AEADBlockCipher c, org.bouncycastle.crypto.params.KeyParameter secretKey, byte[] iv, int encAlgorithm, int aeadAlgorithm, int chunkSize) OutputStream for AEAD encryption. -
Method Summary
Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write
-
Constructor Details
-
PGPAeadOutputStream
public PGPAeadOutputStream(boolean isV5StyleAEAD, OutputStream out, org.bouncycastle.crypto.modes.AEADBlockCipher c, org.bouncycastle.crypto.params.KeyParameter secretKey, byte[] iv, int encAlgorithm, int aeadAlgorithm, int chunkSize) OutputStream for AEAD encryption.- Parameters:
isV5StyleAEAD
- flavour of AEAD (OpenPGP v5 or v6)out
- underlying OutputStreamc
- AEAD ciphersecretKey
- secret keyiv
- initialization vectorencAlgorithm
- encryption algorithmaeadAlgorithm
- aead algorithmchunkSize
- chunk size of the AEAD encryption
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-