Pol  Rev 533
CCryptBlowfish Class Reference

#include <crypt.h>

+ Inheritance diagram for CCryptBlowfish:
+ Collaboration diagram for CCryptBlowfish:

List of all members.

Public Types

typedef CCryptBaseCrypt base

Public Member Functions

 CCryptBlowfish ()
 CCryptBlowfish (unsigned int masterKey1, unsigned int masterKey2)
 ~CCryptBlowfish ()
virtual void Init (void *pvSeed, int type=CCryptBase::typeAuto)
virtual int Receive (void *buffer, int max_expected, SOCKET socket)
virtual void SetMasterKeys (unsigned int masterKey1, unsigned int masterKey2)

Public Attributes

BlowFish bfish

Protected Member Functions

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

Detailed Description

Definition at line 34 of file crypt.h.


Member Typedef Documentation

Definition at line 38 of file crypt.h.


Constructor & Destructor Documentation

Definition at line 30 of file crypt.cpp.

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

Definition at line 38 of file crypt.cpp.

References SetMasterKeys().

+ Here is the call graph for this function:

Definition at line 34 of file crypt.cpp.


Member Function Documentation

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

Implements CCryptBaseCrypt.

Reimplemented in CCrypt12536, and CCryptBlowfishOld.

Definition at line 72 of file crypt.cpp.

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

Implements CCryptBase.

Definition at line 62 of file crypt.cpp.

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

+ Here is the call graph for this function:

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

Implements CCryptBase.

Definition at line 43 of file crypt.cpp.

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

+ Here is the call graph for this function:

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

Implements CCryptBaseCrypt.

Definition at line 56 of file crypt.cpp.

References CCryptBaseCrypt::m_masterKey.

Referenced by CCrypt12536::CCrypt12536(), CCryptBlowfish(), and CCryptBlowfishOld::CCryptBlowfishOld().

+ Here is the caller graph for this function:


Member Data Documentation


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