|
TrueZIP 6.8.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.schlichtherle.io.rof.AbstractReadOnlyFile
de.schlichtherle.io.rof.FilterReadOnlyFile
de.schlichtherle.crypto.io.CipherReadOnlyFile
de.schlichtherle.crypto.io.raes.RaesReadOnlyFile
de.schlichtherle.crypto.io.raes.Type0RaesReadOnlyFile
class Type0RaesReadOnlyFile
Reads a type 0 RAES file.
| Field Summary | |
|---|---|
private byte[] |
footer
The footer of the data envelope containing the authentication codes. |
private int |
keyStrength
The key strength. |
private CipherParameters |
macParam
The parameters required to init the Message Authentication Code (MAC). |
private static long |
MIN_KEY_RETRY_DELAY
The minimum delay between subsequent attempts to authenticate a key in milliseconds. |
| Fields inherited from class de.schlichtherle.io.rof.FilterReadOnlyFile |
|---|
rof |
| Constructor Summary | |
|---|---|
Type0RaesReadOnlyFile(ReadOnlyFile rof,
Type0RaesParameters parameters)
|
|
| Method Summary | |
|---|---|
void |
authenticate()
Authenticates all encrypted data in the read only file. |
private static long |
enforceSuspensionPenalty(long last)
|
int |
getKeySizeBits()
Returns the key size in bits which is actually used to decrypt the data of this RAES file. |
| Methods inherited from class de.schlichtherle.crypto.io.raes.RaesReadOnlyFile |
|---|
getInstance, getInstance, readUByte, readUInt, readUShort |
| Methods inherited from class de.schlichtherle.crypto.io.CipherReadOnlyFile |
|---|
close, computeMac, getFilePointer, init, length, read, read, seek |
| Methods inherited from class de.schlichtherle.io.rof.AbstractReadOnlyFile |
|---|
read, readFully, readFully, skipBytes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final long MIN_KEY_RETRY_DELAY
private final int keyStrength
private final CipherParameters macParam
private final byte[] footer
| Constructor Detail |
|---|
Type0RaesReadOnlyFile(ReadOnlyFile rof,
Type0RaesParameters parameters)
throws NullPointerException,
FileNotFoundException,
RaesException,
RaesKeyException,
IOException
NullPointerException
FileNotFoundException
RaesException
RaesKeyException
IOException| Method Detail |
|---|
private static long enforceSuspensionPenalty(long last)
public int getKeySizeBits()
RaesReadOnlyFile
getKeySizeBits in class RaesReadOnlyFile
public void authenticate()
throws RaesAuthenticationException,
IOException
RaesReadOnlyFileThis is the second, optional step of authentication. The first, mandatory step is to computeMac the cipher key and cipher text length only and has already been successfully completed in the constructor.
authenticate in class RaesReadOnlyFileRaesAuthenticationException - If the computed MAC does not match
the MAC declared in the RAES file.
IOException - On any I/O related issue.
|
TrueZIP 6.8.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||