protected static class BcAEADUtil.PGPAeadOutputStream
extends java.io.OutputStream
Constructor and Description |
---|
PGPAeadOutputStream(boolean isV5StyleAEAD,
java.io.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.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
public PGPAeadOutputStream(boolean isV5StyleAEAD, java.io.OutputStream out, org.bouncycastle.crypto.modes.AEADBlockCipher c, org.bouncycastle.crypto.params.KeyParameter secretKey, byte[] iv, int encAlgorithm, int aeadAlgorithm, int chunkSize)
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 encryptionpublic void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException