Pol  Rev 533
CCryptBlowfishTwofish Class Reference

#include <crypt.h>

+ Inheritance diagram for CCryptBlowfishTwofish:
+ Collaboration diagram for CCryptBlowfishTwofish:

List of all members.

Public Member Functions

 CCryptBlowfishTwofish ()
 CCryptBlowfishTwofish (unsigned int masterKey1, unsigned int masterKey2)
 ~CCryptBlowfishTwofish ()
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

BlowFish bfish
TwoFish tfish

Protected Member Functions

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

Detailed Description

Definition at line 86 of file crypt.h.


Constructor & Destructor Documentation

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

Definition at line 175 of file crypt.cpp.

References SetMasterKeys().

+ Here is the call graph for this function:


Member Function Documentation

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

Implements CCryptBaseCrypt.

Definition at line 210 of file crypt.cpp.

References bfish, CRYPT_AUTO_VALUE, LoginCrypt::Decrypt(), BlowFish::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 CCryptBlowfishTwofish::Init ( void *  pvSeed,
int  type = CCryptBase::typeAuto 
) [virtual]

Implements CCryptBase.

Definition at line 199 of file crypt.cpp.

References bfish, LoginCrypt::Init(), BlowFish::Init(), TwoFish::Init(), CCryptBaseCrypt::lcrypt, CCryptBaseCrypt::m_masterKey, CCryptBaseCrypt::m_type, and tfish.

+ Here is the call graph for this function:

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

Implements CCryptBase.

Definition at line 180 of file crypt.cpp.

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

+ Here is the call graph for this function:

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

Implements CCryptBaseCrypt.

Definition at line 193 of file crypt.cpp.

References CCryptBaseCrypt::m_masterKey.

Referenced by CCryptBlowfishTwofish().

+ Here is the caller graph for this function:


Member Data Documentation

Definition at line 93 of file crypt.h.

Referenced by Decrypt(), and Init().

Definition at line 94 of file crypt.h.

Referenced by Decrypt(), and Init().


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