Pol  Revision:cb584c9
Pol::Crypt::CCryptBlowfishTwofish Class Reference

#include <crypt.h>

+ Inheritance diagram for Pol::Crypt::CCryptBlowfishTwofish:

Public Member Functions

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

- Public Types inherited from Pol::Crypt::CCryptBase
enum  e_crypttype { typeLogin, typeGame, typeAuto }
- 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 91 of file crypt.h.

Constructor & Destructor Documentation

Pol::Crypt::CCryptBlowfishTwofish::CCryptBlowfishTwofish ( )

Definition at line 165 of file crypt.cpp.

Pol::Crypt::CCryptBlowfishTwofish::CCryptBlowfishTwofish ( unsigned int  masterKey1,
unsigned int  masterKey2 

Definition at line 169 of file crypt.cpp.

References SetMasterKeys().

Pol::Crypt::CCryptBlowfishTwofish::~CCryptBlowfishTwofish ( )

Definition at line 167 of file crypt.cpp.

Member Function Documentation

int Pol::Crypt::CCryptBlowfishTwofish::Receive ( void *  buffer,
int  max_expected,
SOCKET  socket 
void Pol::Crypt::CCryptBlowfishTwofish::SetMasterKeys ( unsigned int  masterKey1,
unsigned int  masterKey2 

Implements Pol::Crypt::CCryptBaseCrypt.

Definition at line 187 of file crypt.cpp.

References Pol::Crypt::CCryptBaseCrypt::m_masterKey.

Referenced by CCryptBlowfishTwofish().

Member Data Documentation

BlowFish Pol::Crypt::CCryptBlowfishTwofish::bfish

Definition at line 98 of file crypt.h.

Referenced by Decrypt(), and Init().

TwoFish Pol::Crypt::CCryptBlowfishTwofish::tfish

Definition at line 99 of file crypt.h.

Referenced by Decrypt(), and Init().

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