@NotThreadSafe @DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) final class Type0RaesOutputStream extends RaesOutputStream
| Modifier and Type | Field and Description |
|---|---|
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 Type0RaesParameters.KeyStrength |
keyStrength
The key strength.
|
private Mac |
klac
The cipher Key and cipher text Length Authentication Code (KLAC).
|
private Mac |
mac
The Message Authentication Code (MAC).
|
private SecureRandom |
shaker |
private long |
start
The offset where the encrypted application data starts.
|
cipherdelegate| Constructor and Description |
|---|
Type0RaesOutputStream(OutputStream out,
Type0RaesParameters param) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
finish() |
Type0RaesParameters.KeyStrength |
getKeyStrength()
Returns the key strength which is actually used to encrypt the data of
the RAES file.
|
private void |
paranoidWipe(byte[] passwd)
Wipe the given array.
|
private void |
paranoidWipe(char[] passwd)
Wipe the given array.
|
getInstance, klacclose, write, writeflush, toString, writeprivate LEDataOutputStream dos
static final int ITERATION_COUNT
private final Type0RaesParameters.KeyStrength keyStrength
private Mac klac
private Mac mac
private final SecureRandom shaker
private long start
Type0RaesOutputStream(OutputStream out, Type0RaesParameters param) throws IOException
IOExceptionprotected void finish()
throws IOException
finish in class CipherOutputStreamIOExceptionpublic Type0RaesParameters.KeyStrength getKeyStrength()
RaesOutputStreamgetKeyStrength in class RaesOutputStreamprivate void paranoidWipe(byte[] passwd)
private void paranoidWipe(char[] passwd)
Copyright © 2004-2011 Schlichtherle IT Services. All Rights Reserved.