mixconfig.tools.dataretention.DataRetentionLogFileHeader Class Reference

List of all members.

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


Detailed Description

Author:
Petr Svenda

Constructor & Destructor Documentation

mixconfig.tools.dataretention.DataRetentionLogFileHeader.DataRetentionLogFileHeader (  ) 


Member Function Documentation

void mixconfig.tools.dataretention.DataRetentionLogFileHeader.writeToFile ( FileOutputStream  file  )  throws Exception

void mixconfig.tools.dataretention.DataRetentionLogFileHeader.writeWithoutAuthTag ( OutputStream  out  )  throws Exception [private]

void mixconfig.tools.dataretention.DataRetentionLogFileHeader.parseFromFile ( FileInputStream  file  )  throws IOException

int mixconfig.tools.dataretention.DataRetentionLogFileHeader.getLength (  ) 

byte [] mixconfig.tools.dataretention.DataRetentionLogFileHeader.getEncryptedKey ( int  index  ) 

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

int mixconfig.tools.dataretention.DataRetentionLogFileHeader.getSizeOfLogLine (  ) 

int mixconfig.tools.dataretention.DataRetentionLogFileHeader.getNrOfLogEntriesPerLogLine (  ) 

int mixconfig.tools.dataretention.DataRetentionLogFileHeader.getSizeOfLogEntry (  ) 

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.

Parameters:
in ciphertext
inOff ciphtertext offset
inLen length of ciphertext
iv IV
key key
plainOut plaintext
Returns:
length of plntext
Exceptions:
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]


Member Data Documentation


The documentation for this class was generated from the following file:

Generated on Mon Nov 16 23:24:48 2009 for MixConfig by  doxygen 1.5.6