Pol  Revision:cb584c9
Pol::Crypt::CCryptTwofish Class Reference

#include <crypt.h>

+ Inheritance diagram for Pol::Crypt::CCryptTwofish:

Public Member Functions

 CCryptTwofish ()
 CCryptTwofish (unsigned int masterKey1, unsigned int masterKey2)
virtual ~CCryptTwofish ()
virtual void Encrypt (void *pvIn, void *pvOut, int len) POL_OVERRIDE
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 ()

Public Attributes

MD5Crypt md5
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 112 of file crypt.h.

Constructor & Destructor Documentation

Pol::Crypt::CCryptTwofish::CCryptTwofish ( )

Definition at line 230 of file crypt.cpp.

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

Definition at line 234 of file crypt.cpp.

References SetMasterKeys().

Pol::Crypt::CCryptTwofish::~CCryptTwofish ( )

Definition at line 232 of file crypt.cpp.

Member Function Documentation

void Pol::Crypt::CCryptTwofish::Encrypt ( void *  pvIn,
void *  pvOut,
int  len 

Reimplemented from Pol::Crypt::CCryptBase.

Definition at line 269 of file crypt.cpp.

References Pol::Crypt::MD5Crypt::Encrypt(), and md5.

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

Implements Pol::Crypt::CCryptBaseCrypt.

Definition at line 252 of file crypt.cpp.

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

Referenced by CCryptTwofish().

Member Data Documentation

MD5Crypt Pol::Crypt::CCryptTwofish::md5

Definition at line 120 of file crypt.h.

Referenced by Encrypt(), and Init().

TwoFish Pol::Crypt::CCryptTwofish::tfish

Definition at line 119 of file crypt.h.

Referenced by Decrypt(), and Init().

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