Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MNDecrypt Class Reference

#include <MNDecrypt.h>

Collaboration diagram for MNDecrypt:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 MNDecrypt (const char *filename)
 ~MNDecrypt ()
void write (const unsigned char *data, u_int64 pos, u_int64 len)
u_int64 bytesAvail ()
const unsigned char * read ()
bool isInitialized ()

Protected Types

typedef u_int64_t u_int64
typedef u_int32_t u_int32
typedef Rijndaelrijndael_ptr

Protected Member Functions

u_int64 relBlockPos (const u_int64 pos)
bool isOffset (const u_int64 pos)
bool isPlain (const u_int64 pos)
bool isCipher (const u_int64 pos)
void * safemalloc (size_t size)
void * safecalloc (size_t nmemb, size_t size)
void * saferealloc (void *ptr, size_t size)

Protected Attributes

unsigned char * _data
unsigned char * _decrypted
unsigned char _oddStuff [16]
u_int64 _dataLen
bool _dataLocal
u_int32 _keyLen
u_int32 _buckets
u_int32 _bucketSize
u_int32 _offset
u_int32 _plainLen
u_int32 _cipherLen
u_int64 _cipherBlockLen
u_int64 _blockLen
u_int32_userID
Rijndael ** _decrypters
u_int64 _lastPos
bool _initialized

Member Typedef Documentation

typedef Rijndael* MNDecrypt::rijndael_ptr [protected]
 

typedef u_int32_t MNDecrypt::u_int32 [protected]
 

typedef u_int64_t MNDecrypt::u_int64 [protected]
 


Constructor & Destructor Documentation

MNDecrypt::MNDecrypt const char *  filename  ) 
 

MNDecrypt::~MNDecrypt  ) 
 


Member Function Documentation

u_int64 MNDecrypt::bytesAvail  )  [inline]
 

bool MNDecrypt::isCipher const u_int64  pos  )  [inline, protected]
 

bool MNDecrypt::isInitialized  )  [inline]
 

bool MNDecrypt::isOffset const u_int64  pos  )  [inline, protected]
 

bool MNDecrypt::isPlain const u_int64  pos  )  [inline, protected]
 

const unsigned char* MNDecrypt::read  )  [inline]
 

u_int64 MNDecrypt::relBlockPos const u_int64  pos  )  [inline, protected]
 

void* MNDecrypt::safecalloc size_t  nmemb,
size_t  size
[inline, protected]
 

void* MNDecrypt::safemalloc size_t  size  )  [inline, protected]
 

void* MNDecrypt::saferealloc void *  ptr,
size_t  size
[inline, protected]
 

void MNDecrypt::write const unsigned char *  data,
u_int64  pos,
u_int64  len
 


Member Data Documentation

u_int64 MNDecrypt::_blockLen [protected]
 

u_int32 MNDecrypt::_buckets [protected]
 

u_int32 MNDecrypt::_bucketSize [protected]
 

u_int64 MNDecrypt::_cipherBlockLen [protected]
 

u_int32 MNDecrypt::_cipherLen [protected]
 

unsigned char* MNDecrypt::_data [protected]
 

u_int64 MNDecrypt::_dataLen [protected]
 

bool MNDecrypt::_dataLocal [protected]
 

unsigned char* MNDecrypt::_decrypted [protected]
 

Rijndael** MNDecrypt::_decrypters [protected]
 

bool MNDecrypt::_initialized [protected]
 

u_int32 MNDecrypt::_keyLen [protected]
 

u_int64 MNDecrypt::_lastPos [protected]
 

unsigned char MNDecrypt::_oddStuff[16] [protected]
 

u_int32 MNDecrypt::_offset [protected]
 

u_int32 MNDecrypt::_plainLen [protected]
 

u_int32* MNDecrypt::_userID [protected]
 


The documentation for this class was generated from the following file:
Generated on Sun Mar 6 13:35:57 2005 for Komssys by doxygen 1.3.8