@NotThreadSafe @DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) class Type0RaesOutputStream extends RaesOutputStream
| Modifier and Type | Field and Description |
|---|---|
private boolean |
closed
Whether this stream has been closed or not.
|
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 static 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 |
|---|---|
void |
close()
Closes this output stream and releases any resources associated with it.
|
Type0RaesParameters.KeyStrength |
getKeyStrength()
Returns the key strength which is actually used to encrypt the data of
the RAES file.
|
getInstance, klacfinish, write, writeflush, toString, writeprivate static final SecureRandom shaker
static final int ITERATION_COUNT
private final Type0RaesParameters.KeyStrength keyStrength
private Mac mac
private Mac klac
private LEDataOutputStream dos
private long start
private boolean closed
Type0RaesOutputStream(OutputStream out, Type0RaesParameters param) throws IOException
IOExceptionpublic Type0RaesParameters.KeyStrength getKeyStrength()
RaesOutputStreamgetKeyStrength in class RaesOutputStreampublic void close()
throws IOException
CipherOutputStreamCipherOutputStream.finish() and then closes and nullifies
the underlying output stream DecoratingOutputStream.delegate and the cipher
CipherOutputStream.cipher.close in interface Closeableclose in interface AutoCloseableclose in class CipherOutputStreamIOException - If an I/O error occurs.Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.