Pol  Revision:dd8d5e0
Pol::Crypt Namespace Reference

Classes

struct  _CryptInfo
 
class  BlowFish
 
class  CCrypt12536
 
class  CCryptBase
 
class  CCryptBaseCrypt
 
class  CCryptBlowfish
 
class  CCryptBlowfishOld
 
class  CCryptBlowfishTwofish
 
class  CCryptNoCrypt
 
class  CCryptTwofish
 
class  LoginCrypt
 
class  MD5Crypt
 
struct  tagcipherInstance
 
struct  tagkeyInstance
 
struct  tagmd5_state
 
class  TwoFish
 

Typedefs

typedef struct Pol::Crypt::tagcipherInstance CipherInstance
 
typedef struct Pol::Crypt::tagkeyInstance KeyInstance
 
typedef struct Pol::Crypt::tagmd5_state md5_state
 
typedef struct Pol::Crypt::_CryptInfo TCryptInfo
 

Enumerations

enum  ECryptType {
  CRYPT_NOCRYPT = 0, CRYPT_OLD_BLOWFISH = 1, CRYPT_1_25_36 = 2, CRYPT_BLOWFISH = 3,
  CRYPT_BLOWFISH_TWOFISH = 4, CRYPT_TWOFISH = 5
}
 

Functions

void CalculateCryptKeys (const std::string &name, TCryptInfo &infoCrypt)
 
bool compareVersion (int ver1major, int ver1minor, int ver1build, int ver2major, int ver2minor, int ver2build)
 
CCryptBasecreate_crypt_1_25_36_engine (unsigned int uiKey1, unsigned int uiKey2)
 
CCryptBasecreate_crypt_blowfish_engine (unsigned int uiKey1, unsigned int uiKey2)
 
CCryptBasecreate_crypt_blowfish_twofish_engine (unsigned int uiKey1, unsigned int uiKey2)
 
CCryptBasecreate_crypt_engine (TCryptInfo &infoCrypt)
 
CCryptBasecreate_crypt_old_blowfish_engine (unsigned int uiKey1, unsigned int uiKey2)
 
CCryptBasecreate_crypt_twofish_engine (unsigned int uiKey1, unsigned int uiKey2)
 
CCryptBasecreate_nocrypt_engine ()
 

Variables

static unsigned char key_table [CRYPT_GAMEKEY_COUNT][CRYPT_GAMEKEY_LENGTH]
 
unsigned char P8x8 [2][256]
 
static unsigned int p_box [18]
 
static unsigned int p_table [CRYPT_GAMEKEY_COUNT][18]
 
static unsigned int s_box [1024]
 
static unsigned int s_table [CRYPT_GAMEKEY_COUNT][1024]
 
static unsigned char seed_table [2][CRYPT_GAMESEED_COUNT][2][CRYPT_GAMESEED_LENGTH]
 

Typedef Documentation

Enumeration Type Documentation

Enumerator
CRYPT_NOCRYPT 
CRYPT_OLD_BLOWFISH 
CRYPT_1_25_36 
CRYPT_BLOWFISH 
CRYPT_BLOWFISH_TWOFISH 
CRYPT_TWOFISH 

Definition at line 18 of file cryptkey.h.

Function Documentation

bool Pol::Crypt::compareVersion ( int  ver1major,
int  ver1minor,
int  ver1build,
int  ver2major,
int  ver2minor,
int  ver2build 
)

Definition at line 88 of file cryptkey.cpp.

Referenced by CalculateCryptKeys(), and Pol::Network::Client::setversiondetail().

CCryptBase* Pol::Crypt::create_crypt_1_25_36_engine ( unsigned int  uiKey1,
unsigned int  uiKey2 
)

Definition at line 27 of file cryptengine.cpp.

Referenced by create_crypt_engine().

CCryptBase* Pol::Crypt::create_crypt_blowfish_engine ( unsigned int  uiKey1,
unsigned int  uiKey2 
)

Definition at line 32 of file cryptengine.cpp.

Referenced by create_crypt_engine().

CCryptBase* Pol::Crypt::create_crypt_blowfish_twofish_engine ( unsigned int  uiKey1,
unsigned int  uiKey2 
)

Definition at line 42 of file cryptengine.cpp.

Referenced by create_crypt_engine().

CCryptBase* Pol::Crypt::create_crypt_old_blowfish_engine ( unsigned int  uiKey1,
unsigned int  uiKey2 
)

Definition at line 22 of file cryptengine.cpp.

Referenced by create_crypt_engine().

CCryptBase* Pol::Crypt::create_crypt_twofish_engine ( unsigned int  uiKey1,
unsigned int  uiKey2 
)

Definition at line 37 of file cryptengine.cpp.

Referenced by create_crypt_engine().

CCryptBase* Pol::Crypt::create_nocrypt_engine ( )

Definition at line 17 of file cryptengine.cpp.

Referenced by create_crypt_engine().

Variable Documentation

unsigned char Pol::Crypt::key_table[CRYPT_GAMEKEY_COUNT][CRYPT_GAMEKEY_LENGTH]
static
Initial value:
= {
{0x91, 0x3C, 0x2B, 0x0F, 0x44, 0xC6}, {0x0C, 0x96, 0xD2, 0x40, 0x93, 0x21},
{0xF2, 0x12, 0xA5, 0xAA, 0xDA, 0xE9}, {0x9A, 0xD4, 0xF7, 0x14, 0x97, 0xD0},
{0xFC, 0xC9, 0xC7, 0xD6, 0xA8, 0xA3}, {0x7B, 0x67, 0x36, 0x9B, 0x0B, 0x1A},
{0x03, 0xAC, 0xF9, 0x02, 0xAE, 0x2D}, {0x01, 0x77, 0x79, 0x6B, 0x0C, 0x67},
{0xA4, 0xB4, 0x1E, 0xD7, 0xAA, 0x51}, {0xD6, 0xE1, 0xBC, 0x27, 0x15, 0x25},
{0x17, 0x17, 0x47, 0x65, 0x40, 0x8B}, {0xB8, 0x19, 0xDB, 0x4E, 0x17, 0x74},
{0xAA, 0x63, 0xAC, 0x37, 0xA0, 0x8F}, {0x77, 0xCD, 0x5D, 0x23, 0xEF, 0xB7},
{0x13, 0x2B, 0x83, 0xBF, 0x0F, 0x8C}, {0xB1, 0x0B, 0xC8, 0x6F, 0x39, 0x4D},
{0xA1, 0xA5, 0xFA, 0x2B, 0xC6, 0xE2}, {0x9C, 0x29, 0xCC, 0x26, 0xE9, 0x2D},
{0xCD, 0x6F, 0xD2, 0xCA, 0xBE, 0x47}, {0x9B, 0x21, 0xAE, 0x3E, 0x31, 0x69},
{0xE7, 0x0B, 0xE6, 0x6F, 0xCF, 0x91}, {0x88, 0x59, 0xAF, 0x90, 0xC5, 0x2D},
{0xAE, 0xD2, 0x52, 0xB5, 0x28, 0x98}, {0x3B, 0x7F, 0x65, 0xED, 0x5E, 0x93},
{0x30, 0xBF, 0x0A, 0x34, 0xDB, 0x3D}}

Definition at line 147 of file blowfish.cpp.

unsigned char Pol::Crypt::P8x8[2][256]

Definition at line 12 of file twofish.cpp.

unsigned int Pol::Crypt::p_box[18]
static
Initial value:
= {0x243f6a88, 0x85a308d3, 0x13198a2e, 0x03707344, 0xa4093822,
0x299f31d0, 0x082efa98, 0xec4e6c89, 0x452821e6, 0x38d01377,
0xbe5466cf, 0x34e90c6c, 0xc0ac29b7, 0xc97c50dd, 0x3f84d5b5,
0xb5470917, 0x9216d5d9, 0x8979fb1b}

Definition at line 11 of file blowfish.cpp.

unsigned int Pol::Crypt::p_table[CRYPT_GAMEKEY_COUNT][18]
static

Definition at line 265 of file blowfish.cpp.

unsigned int Pol::Crypt::s_box[1024]
static

Definition at line 16 of file blowfish.cpp.

unsigned int Pol::Crypt::s_table[CRYPT_GAMEKEY_COUNT][1024]
static

Definition at line 266 of file blowfish.cpp.

unsigned char Pol::Crypt::seed_table[2][CRYPT_GAMESEED_COUNT][2][CRYPT_GAMESEED_LENGTH]
static

Definition at line 163 of file blowfish.cpp.