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
ConstructorsConstructorDescriptionPGPAeadOutputStream(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:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-