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.OutputStreamjava.io.IOExceptionpublic void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOException