Public Member Functions | |
DataRetentionLogFileHeader () | |
void | writeToFile (FileOutputStream file) throws Exception |
void | parseFromFile (FileInputStream file) throws IOException |
int | getLength () |
byte[] | getEncryptedKey (int index) |
int | getEncryptedKeyCount () |
void | verifyHeader (byte[] key) throws Exception |
int | getSizeOfLogLine () |
int | getNrOfLogEntriesPerLogLine () |
int | getSizeOfLogEntry () |
int | getLoggingEntity () |
long | getBaseTime () |
Static Public Member Functions | |
static byte[] | decryptSymKey (byte[] encSymKey, MyRSAPrivateKey privKey) throws Exception |
static int | decryptAndVerify (byte[] in, byte[] iv, byte[] key, byte[] plainOut) throws Exception |
static int | decryptAndVerify (byte[] in, int inOff, int inLen, byte[] iv, byte[] key, byte[] plainOut) throws Exception |
Static Public Attributes | |
static final byte | MAX_nr_of_keys = 10 |
static final int | LOGGING_ENTITY_FIRST_MIX = 1 |
static final int | LOGGING_ENTITY_MIDDLE_MIX = 2 |
static final int | LOGGING_ENTITY_LAST_MIX = 3 |
Static Package Functions | |
static void | verifyMac (byte[] in, int inOff, int inLen, byte[] tag, int tagOff, byte[] iv, byte[] key) throws Exception |
Private Member Functions | |
void | writeWithoutAuthTag (OutputStream out) throws Exception |
Static Private Member Functions | |
static void | verifyMac (byte[] in, byte[] tag, byte[] iv, byte[] key) throws Exception |
Private Attributes | |
byte | version = 0 |
byte | reserved1 = 0 |
byte | reserved2 = 0 |
byte | reserved3 = 0 |
byte | day = 0 |
byte | month = 0 |
short | year = 0 |
long | m_BaseTime |
byte | logging_entity = 0 |
byte | logged_fields = 0 |
short | nr_of_log_entries_per_encrypted_log_line = 0 |
byte | nr_of_keys = 0 |
t_encrypted_key[] | keys = null |
byte | auth_tag [] = null |
byte | m_sizeOfLogEntry |
Classes | |
class | t_encrypted_key |
mixconfig.tools.dataretention.DataRetentionLogFileHeader.DataRetentionLogFileHeader | ( | ) |
void mixconfig.tools.dataretention.DataRetentionLogFileHeader.writeToFile | ( | FileOutputStream | file | ) | throws Exception |
void mixconfig.tools.dataretention.DataRetentionLogFileHeader.writeWithoutAuthTag | ( | OutputStream | out | ) | throws Exception [private] |
References mixconfig.tools.dataretention.DataRetentionLogFileHeader.day, mixconfig.tools.dataretention.DataRetentionLogFileHeader.t_encrypted_key.encryptedKeyBlock, mixconfig.tools.dataretention.DataRetentionLogFileHeader.keys, mixconfig.tools.dataretention.DataRetentionLogFileHeader.logged_fields, mixconfig.tools.dataretention.DataRetentionLogFileHeader.logging_entity, mixconfig.tools.dataretention.DataRetentionLogFileHeader.month, mixconfig.tools.dataretention.DataRetentionLogFileHeader.nr_of_keys, mixconfig.tools.dataretention.DataRetentionLogFileHeader.nr_of_log_entries_per_encrypted_log_line, mixconfig.tools.dataretention.DataRetentionLogFileHeader.reserved1, mixconfig.tools.dataretention.DataRetentionLogFileHeader.reserved2, mixconfig.tools.dataretention.DataRetentionLogFileHeader.reserved3, mixconfig.tools.dataretention.DataRetentionLogFileHeader.version, and mixconfig.tools.dataretention.DataRetentionLogFileHeader.year.
Referenced by mixconfig.tools.dataretention.DataRetentionLogFileHeader.verifyHeader(), and mixconfig.tools.dataretention.DataRetentionLogFileHeader.writeToFile().
void mixconfig.tools.dataretention.DataRetentionLogFileHeader.parseFromFile | ( | FileInputStream | file | ) | throws IOException |
todo
References mixconfig.tools.dataretention.DataRetentionLogFileHeader.auth_tag, mixconfig.tools.dataretention.DataRetentionLogFileHeader.day, mixconfig.tools.dataretention.DataRetentionLogFileHeader.t_encrypted_key.encryptedKeyBlock, mixconfig.tools.dataretention.DataRetentionLogFileHeader.keys, mixconfig.tools.dataretention.DataRetentionLogFileHeader.logged_fields, mixconfig.tools.dataretention.DataRetentionLogFileHeader.logging_entity, mixconfig.tools.dataretention.DataRetentionLogFileHeader.m_BaseTime, mixconfig.tools.dataretention.DataRetentionLogFileHeader.m_sizeOfLogEntry, mixconfig.tools.dataretention.DataRetentionLogFileHeader.month, mixconfig.tools.dataretention.DataRetentionLogFileHeader.nr_of_keys, mixconfig.tools.dataretention.DataRetentionLogFileHeader.nr_of_log_entries_per_encrypted_log_line, mixconfig.tools.dataretention.DataRetentionLogFileHeader.reserved1, mixconfig.tools.dataretention.DataRetentionLogFileHeader.reserved2, mixconfig.tools.dataretention.DataRetentionLogFileHeader.reserved3, mixconfig.tools.dataretention.DataRetentionLogFileHeader.version, and mixconfig.tools.dataretention.DataRetentionLogFileHeader.year.
Referenced by mixconfig.tools.dataretention.DataRetentionLogFile.parseHeader(), and mixconfig.tools.dataretention.RetentionDlg.retrieveLogsActionPerformed().
int mixconfig.tools.dataretention.DataRetentionLogFileHeader.getLength | ( | ) |
References mixconfig.tools.dataretention.DataRetentionLogFileHeader.nr_of_keys.
Referenced by mixconfig.tools.dataretention.DataRetentionLogFile.getExpectedNrOfLogEntries(), mixconfig.tools.dataretention.DataRetentionLogFile.getNrOfLogLines(), mixconfig.tools.dataretention.DataRetentionLogFile.readAndDecrpytLogLine(), mixconfig.tools.dataretention.RetentionDlg.retrieveLogsActionPerformed(), and mixconfig.tools.dataretention.DataRetentionLogFile.verifyFirstLogLine().
byte [] mixconfig.tools.dataretention.DataRetentionLogFileHeader.getEncryptedKey | ( | int | index | ) |
References mixconfig.tools.dataretention.DataRetentionLogFileHeader.t_encrypted_key.encryptedKeyBlock, and mixconfig.tools.dataretention.DataRetentionLogFileHeader.keys.
Referenced by mixconfig.tools.dataretention.DataRetentionLogFile.getEncryptedKey(), and mixconfig.tools.dataretention.RetentionDlg.retrieveLogsActionPerformed().
int mixconfig.tools.dataretention.DataRetentionLogFileHeader.getEncryptedKeyCount | ( | ) |
static byte [] mixconfig.tools.dataretention.DataRetentionLogFileHeader.decryptSymKey | ( | byte[] | encSymKey, | |
MyRSAPrivateKey | privKey | |||
) | throws Exception [static] |
void mixconfig.tools.dataretention.DataRetentionLogFileHeader.verifyHeader | ( | byte[] | key | ) | throws Exception |
References mixconfig.tools.dataretention.DataRetentionLogFileHeader.auth_tag, mixconfig.tools.dataretention.DataRetentionLogFileHeader.verifyMac(), and mixconfig.tools.dataretention.DataRetentionLogFileHeader.writeWithoutAuthTag().
Referenced by mixconfig.tools.dataretention.DataRetentionLogFile.verifyHeader().
int mixconfig.tools.dataretention.DataRetentionLogFileHeader.getSizeOfLogLine | ( | ) |
References mixconfig.tools.dataretention.DataRetentionLogFileHeader.m_sizeOfLogEntry, and mixconfig.tools.dataretention.DataRetentionLogFileHeader.nr_of_log_entries_per_encrypted_log_line.
Referenced by mixconfig.tools.dataretention.DataRetentionLogFile.getExpectedNrOfLogEntries(), mixconfig.tools.dataretention.DataRetentionLogFile.getNrOfLogLines(), mixconfig.tools.dataretention.DataRetentionLogFile.readAndDecrpytLogLine(), mixconfig.tools.dataretention.RetentionDlg.retrieveLogsActionPerformed(), and mixconfig.tools.dataretention.DataRetentionLogFile.verifyNextLogLine().
int mixconfig.tools.dataretention.DataRetentionLogFileHeader.getNrOfLogEntriesPerLogLine | ( | ) |
References mixconfig.tools.dataretention.DataRetentionLogFileHeader.nr_of_log_entries_per_encrypted_log_line.
Referenced by mixconfig.tools.dataretention.DataRetentionLogFile.getAllLogEntries(), mixconfig.tools.dataretention.DataRetentionLogFile.getExpectedNrOfLogEntries(), mixconfig.tools.dataretention.DataRetentionLogFile.getToutOfLogEntry(), mixconfig.tools.dataretention.DataRetentionLogFile.readAndDecrpytLogLine(), mixconfig.tools.dataretention.RetentionDlg.retrieveLogsActionPerformed(), and mixconfig.tools.dataretention.DataRetentionLogFile.verifyNextLogLine().
int mixconfig.tools.dataretention.DataRetentionLogFileHeader.getSizeOfLogEntry | ( | ) |
References mixconfig.tools.dataretention.DataRetentionLogFileHeader.m_sizeOfLogEntry.
Referenced by mixconfig.tools.dataretention.DataRetentionLogFile.getAllLogEntries(), mixconfig.tools.dataretention.DataRetentionLogFile.getExpectedNrOfLogEntries(), mixconfig.tools.dataretention.DataRetentionLogFile.getToutOfLogEntry(), mixconfig.tools.dataretention.DataRetentionLogFile.readAndDecrpytLogLine(), mixconfig.tools.dataretention.RetentionDlg.retrieveLogsActionPerformed(), and mixconfig.tools.dataretention.DataRetentionLogFile.verifyNextLogLine().
int mixconfig.tools.dataretention.DataRetentionLogFileHeader.getLoggingEntity | ( | ) |
long mixconfig.tools.dataretention.DataRetentionLogFileHeader.getBaseTime | ( | ) |
static int mixconfig.tools.dataretention.DataRetentionLogFileHeader.decryptAndVerify | ( | byte[] | in, | |
byte[] | iv, | |||
byte[] | key, | |||
byte[] | plainOut | |||
) | throws Exception [static] |
static int mixconfig.tools.dataretention.DataRetentionLogFileHeader.decryptAndVerify | ( | byte[] | in, | |
int | inOff, | |||
int | inLen, | |||
byte[] | iv, | |||
byte[] | key, | |||
byte[] | plainOut | |||
) | throws Exception [static] |
Decrypts and verifes an AES_GCM encrypted buffer.
in | ciphertext | |
inOff | ciphtertext offset | |
inLen | length of ciphertext | |
iv | IV | |
key | key | |
plainOut | plaintext |
Exception |
static void mixconfig.tools.dataretention.DataRetentionLogFileHeader.verifyMac | ( | byte[] | in, | |
byte[] | tag, | |||
byte[] | iv, | |||
byte[] | key | |||
) | throws Exception [static, private] |
static void mixconfig.tools.dataretention.DataRetentionLogFileHeader.verifyMac | ( | byte[] | in, | |
int | inOff, | |||
int | inLen, | |||
byte[] | tag, | |||
int | tagOff, | |||
byte[] | iv, | |||
byte[] | key | |||
) | throws Exception [static, package] |
final byte mixconfig.tools.dataretention.DataRetentionLogFileHeader.MAX_nr_of_keys = 10 [static] |
final int mixconfig.tools.dataretention.DataRetentionLogFileHeader.LOGGING_ENTITY_FIRST_MIX = 1 [static] |
final int mixconfig.tools.dataretention.DataRetentionLogFileHeader.LOGGING_ENTITY_MIDDLE_MIX = 2 [static] |
final int mixconfig.tools.dataretention.DataRetentionLogFileHeader.LOGGING_ENTITY_LAST_MIX = 3 [static] |
byte mixconfig.tools.dataretention.DataRetentionLogFileHeader.version = 0 [private] |
byte mixconfig.tools.dataretention.DataRetentionLogFileHeader.reserved1 = 0 [private] |
byte mixconfig.tools.dataretention.DataRetentionLogFileHeader.reserved2 = 0 [private] |
byte mixconfig.tools.dataretention.DataRetentionLogFileHeader.reserved3 = 0 [private] |
byte mixconfig.tools.dataretention.DataRetentionLogFileHeader.day = 0 [private] |
byte mixconfig.tools.dataretention.DataRetentionLogFileHeader.month = 0 [private] |
short mixconfig.tools.dataretention.DataRetentionLogFileHeader.year = 0 [private] |
byte mixconfig.tools.dataretention.DataRetentionLogFileHeader.logging_entity = 0 [private] |
byte mixconfig.tools.dataretention.DataRetentionLogFileHeader.logged_fields = 0 [private] |
short mixconfig.tools.dataretention.DataRetentionLogFileHeader.nr_of_log_entries_per_encrypted_log_line = 0 [private] |
Referenced by mixconfig.tools.dataretention.DataRetentionLogFileHeader.getNrOfLogEntriesPerLogLine(), mixconfig.tools.dataretention.DataRetentionLogFileHeader.getSizeOfLogLine(), mixconfig.tools.dataretention.DataRetentionLogFileHeader.parseFromFile(), and mixconfig.tools.dataretention.DataRetentionLogFileHeader.writeWithoutAuthTag().
byte mixconfig.tools.dataretention.DataRetentionLogFileHeader.nr_of_keys = 0 [private] |
Referenced by mixconfig.tools.dataretention.DataRetentionLogFileHeader.getEncryptedKeyCount(), mixconfig.tools.dataretention.DataRetentionLogFileHeader.getLength(), mixconfig.tools.dataretention.DataRetentionLogFileHeader.parseFromFile(), and mixconfig.tools.dataretention.DataRetentionLogFileHeader.writeWithoutAuthTag().
t_encrypted_key [] mixconfig.tools.dataretention.DataRetentionLogFileHeader.keys = null [private] |
Referenced by mixconfig.tools.dataretention.DataRetentionLogFileHeader.DataRetentionLogFileHeader(), mixconfig.tools.dataretention.DataRetentionLogFileHeader.getEncryptedKey(), mixconfig.tools.dataretention.DataRetentionLogFileHeader.parseFromFile(), and mixconfig.tools.dataretention.DataRetentionLogFileHeader.writeWithoutAuthTag().
byte mixconfig.tools.dataretention.DataRetentionLogFileHeader.auth_tag[] = null [private] |
Referenced by mixconfig.tools.dataretention.DataRetentionLogFileHeader.DataRetentionLogFileHeader(), mixconfig.tools.dataretention.DataRetentionLogFileHeader.parseFromFile(), mixconfig.tools.dataretention.DataRetentionLogFileHeader.verifyHeader(), and mixconfig.tools.dataretention.DataRetentionLogFileHeader.writeToFile().