@NotThreadSafe @DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) class Type0RaesReadOnlyFile extends RaesReadOnlyFile
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
footer
The footer of the data envelope containing the authentication codes.
|
private Type0RaesParameters.KeyStrength |
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.
|
delegate| Constructor and Description |
|---|
Type0RaesReadOnlyFile(ReadOnlyFile rof,
Type0RaesParameters param) |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate()
Authenticates all encrypted data in the read only file.
|
private static long |
enforceSuspensionPenalty(long last) |
Type0RaesParameters.KeyStrength |
getKeyStrength()
Returns the key strength which is actually used to decrypt the data
of the RAES file.
|
getInstance, getInstance, readUByte, readUInt, readUShortclose, computeMac, getFilePointer, init, length, read, read, seektoStringread, readFully, readFullyprivate static final long MIN_KEY_RETRY_DELAY
private final Type0RaesParameters.KeyStrength keyStrength
private final CipherParameters macParam
private final byte[] footer
Type0RaesReadOnlyFile(ReadOnlyFile rof, Type0RaesParameters param) throws IOException
IOExceptionprivate static long enforceSuspensionPenalty(long last)
public Type0RaesParameters.KeyStrength getKeyStrength()
RaesReadOnlyFilegetKeyStrength in class RaesReadOnlyFilepublic 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.Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.