@NotThreadSafe @DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) 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 this stream and resets it to it's initial state.
|
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
CipherOutputStreamPlease note that subsequent calls to any write operations after this method may cause an error in the output data if padding is used!
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 © 2004-2011 Schlichtherle IT Services. All Rights Reserved.