Pol  Rev 533
CCryptTwofish Class Reference

#include <crypt.h>

+ Inheritance diagram for CCryptTwofish:
+ Collaboration diagram for CCryptTwofish:

List of all members.

Public Member Functions

 CCryptTwofish ()
 CCryptTwofish (unsigned int masterKey1, unsigned int masterKey2)
 ~CCryptTwofish ()
void Encrypt (void *pvIn, void *pvOut, int len)
void Init (void *pvSeed, int type=CCryptBase::typeAuto)
int Receive (void *buffer, int max_expected, SOCKET socket)
void SetMasterKeys (unsigned int masterKey1, unsigned int masterKey2)

Public Attributes

MD5Crypt md5
TwoFish tfish

Protected Member Functions

void Decrypt (void *pvIn, void *pvOut, int len)

Detailed Description

Definition at line 107 of file crypt.h.


Constructor & Destructor Documentation

Definition at line 234 of file crypt.cpp.

CCryptTwofish::CCryptTwofish ( unsigned int  masterKey1,
unsigned int  masterKey2 
)

Definition at line 242 of file crypt.cpp.

References SetMasterKeys().

+ Here is the call graph for this function:

Definition at line 238 of file crypt.cpp.


Member Function Documentation

void CCryptTwofish::Decrypt ( void *  pvIn,
void *  pvOut,
int  len 
) [protected, virtual]

Implements CCryptBaseCrypt.

Definition at line 285 of file crypt.cpp.

References CRYPT_AUTO_VALUE, LoginCrypt::Decrypt(), TwoFish::Decrypt(), CCryptBaseCrypt::lcrypt, LoginCrypt::lkey, CCryptBaseCrypt::m_type, tfish, CCryptBase::typeAuto, CCryptBase::typeGame, and CCryptBase::typeLogin.

Referenced by Receive().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void CCryptTwofish::Encrypt ( void *  pvIn,
void *  pvOut,
int  len 
) [virtual]

Reimplemented from CCryptBase.

Definition at line 277 of file crypt.cpp.

References MD5Crypt::Encrypt(), and md5.

+ Here is the call graph for this function:

void CCryptTwofish::Init ( void *  pvSeed,
int  type = CCryptBase::typeAuto 
) [virtual]

Implements CCryptBase.

Definition at line 266 of file crypt.cpp.

References LoginCrypt::Init(), MD5Crypt::Init(), TwoFish::Init(), CCryptBaseCrypt::lcrypt, CCryptBaseCrypt::m_masterKey, CCryptBaseCrypt::m_type, md5, TwoFish::subData3, and tfish.

+ Here is the call graph for this function:

int CCryptTwofish::Receive ( void *  buffer,
int  max_expected,
SOCKET  socket 
) [virtual]

Implements CCryptBase.

Definition at line 247 of file crypt.cpp.

References Decrypt(), CCryptBaseCrypt::encrypted_data, MAXBUFFER, passert, and passert_always.

+ Here is the call graph for this function:

void CCryptTwofish::SetMasterKeys ( unsigned int  masterKey1,
unsigned int  masterKey2 
) [virtual]

Implements CCryptBaseCrypt.

Definition at line 260 of file crypt.cpp.

References CCryptBaseCrypt::m_masterKey.

Referenced by CCryptTwofish().

+ Here is the caller graph for this function:


Member Data Documentation

Definition at line 115 of file crypt.h.

Referenced by Encrypt(), and Init().

Definition at line 114 of file crypt.h.

Referenced by Decrypt(), and Init().


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