@NotThreadSafe final class WinZipAesEntryOutputStream extends CipherOutputStream
RawZipOutputStream.WinZipAesOutputMethod| Modifier and Type | Field and Description |
|---|---|
(package private) static int |
AES_BLOCK_SIZE_BITS
The block size of the Advanced Encryption Specification (AES) Algorithm
in bits (128).
|
private LEDataOutputStream |
dos
The low level data output stream.
|
(package private) static int |
ITERATION_COUNT
The iteration count for the derived keys of the cipher, KLAC and MAC.
|
private Mac |
mac
The Message Authentication Code (MAC).
|
private WinZipAesEntryParameters |
param |
(package private) static int |
PWD_VERIFIER_BITS |
private SecureRandom |
shaker |
cipherdelegate| Constructor and Description |
|---|
WinZipAesEntryOutputStream(LEDataOutputStream out,
WinZipAesEntryParameters param) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finish()
Finishes and voids this cipher output stream.
|
private void |
paranoidWipe(byte[] passwd)
Wipe the given array.
|
private void |
writePasswordVerifier(KeyParameter keyParam) |
close, write, writeflush, toString, writestatic final int AES_BLOCK_SIZE_BITS
private LEDataOutputStream dos
static final int ITERATION_COUNT
private Mac mac
private final WinZipAesEntryParameters param
static final int PWD_VERIFIER_BITS
private final SecureRandom shaker
WinZipAesEntryOutputStream(LEDataOutputStream out, WinZipAesEntryParameters param) throws IOException
IOExceptionprotected void finish()
throws IOException
CipherOutputStream
Note that after a call to this method only CipherOutputStream.close() may get
called on this cipher output stream
The result of calling any other method (including this one) is undefined!
finish in class CipherOutputStreamIOException - If out or cipher aren't properly initialized,
the stream has been closed, an I/O error occured the cipher
text is invalid, i.e. required padding information is missing.private void paranoidWipe(byte[] passwd)
private void writePasswordVerifier(KeyParameter keyParam) throws IOException
IOExceptionCopyright © 2005-2012 Schlichtherle IT Services. All Rights Reserved.