Pol  Revision:cb584c9
Pol::Crypt::CCryptBlowfish Class Reference

#include <crypt.h>

+ Inheritance diagram for Pol::Crypt::CCryptBlowfish:

Public Types

typedef CCryptBaseCrypt base
 
- Public Types inherited from Pol::Crypt::CCryptBase
enum  e_crypttype { typeLogin, typeGame, typeAuto }
 

Public Member Functions

 CCryptBlowfish ()
 
 CCryptBlowfish (unsigned int masterKey1, unsigned int masterKey2)
 
virtual ~CCryptBlowfish ()
 
virtual void Init (void *pvSeed, int type=CCryptBase::typeAuto) POL_OVERRIDE
 
virtual int Receive (void *buffer, int max_expected, SOCKET socket) POL_OVERRIDE
 
virtual void SetMasterKeys (unsigned int masterKey1, unsigned int masterKey2) POL_OVERRIDE
 
- Public Member Functions inherited from Pol::Crypt::CCryptBaseCrypt
 CCryptBaseCrypt ()
 
virtual ~CCryptBaseCrypt ()
 
- Public Member Functions inherited from Pol::Crypt::CCryptBase
 CCryptBase ()
 
virtual ~CCryptBase ()
 
virtual void Encrypt (void *pvIn, void *pvOut, int len)
 

Public Attributes

BlowFish bfish
 
- Public Attributes inherited from Pol::Crypt::CCryptBaseCrypt
LoginCrypt lcrypt
 

Protected Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from Pol::Crypt::CCryptBaseCrypt
unsigned char encrypted_data [MAXBUFFER]
 
unsigned int m_masterKey [2]
 
int m_type
 

Detailed Description

Definition at line 39 of file crypt.h.

Member Typedef Documentation

Definition at line 43 of file crypt.h.

Constructor & Destructor Documentation

Pol::Crypt::CCryptBlowfish::CCryptBlowfish ( )

Definition at line 34 of file crypt.cpp.

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

Definition at line 38 of file crypt.cpp.

References SetMasterKeys().

Pol::Crypt::CCryptBlowfish::~CCryptBlowfish ( )
virtual

Definition at line 36 of file crypt.cpp.

Member Function Documentation

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

Member Data Documentation

BlowFish Pol::Crypt::CCryptBlowfish::bfish

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