|
TrueZIP Driver TZP (ZIP.RAES) 7.0-rc1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
de.schlichtherle.truezip.io.DecoratingOutputStream
de.schlichtherle.truezip.crypto.CipherOutputStream
de.schlichtherle.truezip.crypto.raes.RaesOutputStream
de.schlichtherle.truezip.crypto.raes.Type0RaesOutputStream
class Type0RaesOutputStream
Writes a type 0 RAES file.
| Field Summary | |
|---|---|
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 int |
keyStrengthBits
The actual key strength in bits. |
private Mac |
klac
The cipher Key and cipher text Length Authentication Code (KLAC). |
private Mac |
mac
The Message Authentication Code (MAC). |
private static SecureRandom |
secureRandom
|
private long |
start
The offset where the encrypted application data starts. |
| Fields inherited from class de.schlichtherle.truezip.crypto.CipherOutputStream |
|---|
cipher |
| Fields inherited from class de.schlichtherle.truezip.io.DecoratingOutputStream |
|---|
delegate |
| Constructor Summary | |
|---|---|
Type0RaesOutputStream(OutputStream out,
Type0RaesParameters param)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes this output stream and releases any resources associated with it. |
private static void |
generateSalt(Digest digest,
byte[] salt)
|
int |
getKeySizeBits()
Returns the key size in bits which is actually used to encrypt or decrypt the data for this output stream. |
| Methods inherited from class de.schlichtherle.truezip.crypto.raes.RaesOutputStream |
|---|
getInstance, klac |
| Methods inherited from class de.schlichtherle.truezip.crypto.CipherOutputStream |
|---|
finish, write, write |
| Methods inherited from class de.schlichtherle.truezip.io.DecoratingOutputStream |
|---|
flush, toString, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final SecureRandom secureRandom
static final int ITERATION_COUNT
private int keyStrengthBits
private Mac mac
private Mac klac
private LEDataOutputStream dos
private long start
private boolean closed
| Constructor Detail |
|---|
Type0RaesOutputStream(OutputStream out,
Type0RaesParameters param)
throws NullPointerException,
IllegalArgumentException,
RaesKeyException,
IOException
NullPointerException
IllegalArgumentException
RaesKeyException
IOException| Method Detail |
|---|
private static void generateSalt(Digest digest,
byte[] salt)
public int getKeySizeBits()
RaesOutputStream
getKeySizeBits in class RaesOutputStream
public 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 class CipherOutputStreamIOException - If an I/O error occurs.
|
TrueZIP Driver TZP (ZIP.RAES) 7.0-rc1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||