Pol
Revision:cb584c9
|
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) |
CCryptBase * | create_crypt_1_25_36_engine (unsigned int uiKey1, unsigned int uiKey2) |
CCryptBase * | create_crypt_blowfish_engine (unsigned int uiKey1, unsigned int uiKey2) |
CCryptBase * | create_crypt_blowfish_twofish_engine (unsigned int uiKey1, unsigned int uiKey2) |
CCryptBase * | create_crypt_engine (TCryptInfo &infoCrypt) |
CCryptBase * | create_crypt_old_blowfish_engine (unsigned int uiKey1, unsigned int uiKey2) |
CCryptBase * | create_crypt_twofish_engine (unsigned int uiKey1, unsigned int uiKey2) |
CCryptBase * | create_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 struct Pol::Crypt::tagcipherInstance Pol::Crypt::CipherInstance |
typedef struct Pol::Crypt::tagkeyInstance Pol::Crypt::KeyInstance |
typedef struct Pol::Crypt::tagmd5_state Pol::Crypt::md5_state |
typedef struct Pol::Crypt::_CryptInfo Pol::Crypt::TCryptInfo |
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.
void Pol::Crypt::CalculateCryptKeys | ( | const std::string & | name, |
TCryptInfo & | infoCrypt | ||
) |
Definition at line 31 of file cryptkey.cpp.
References compareVersion(), CRYPT_1_25_36, CRYPT_BLOWFISH, CRYPT_BLOWFISH_TWOFISH, CRYPT_NOCRYPT, CRYPT_OLD_BLOWFISH, CRYPT_TWOFISH, Pol::Crypt::_CryptInfo::eType, POLLOG_ERROR, Pol::Crypt::_CryptInfo::uiKey1, and Pol::Crypt::_CryptInfo::uiKey2.
Referenced by Pol::Core::PolConfig::read_pol_config(), and Pol::Core::UoClientListener::UoClientListener().
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_engine | ( | TCryptInfo & | infoCrypt | ) |
Definition at line 47 of file cryptengine.cpp.
References create_crypt_1_25_36_engine(), create_crypt_blowfish_engine(), create_crypt_blowfish_twofish_engine(), create_crypt_old_blowfish_engine(), create_crypt_twofish_engine(), create_nocrypt_engine(), CRYPT_1_25_36, CRYPT_BLOWFISH, CRYPT_BLOWFISH_TWOFISH, CRYPT_NOCRYPT, CRYPT_OLD_BLOWFISH, CRYPT_TWOFISH, Pol::Crypt::_CryptInfo::eType, POLLOG_ERROR, Pol::Crypt::_CryptInfo::uiKey1, and Pol::Crypt::_CryptInfo::uiKey2.
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().
|
static |
Definition at line 147 of file blowfish.cpp.
unsigned char Pol::Crypt::P8x8[2][256] |
Definition at line 12 of file twofish.cpp.
|
static |
Definition at line 11 of file blowfish.cpp.
|
static |
Definition at line 265 of file blowfish.cpp.
|
static |
Definition at line 16 of file blowfish.cpp.
|
static |
Definition at line 266 of file blowfish.cpp.
|
static |
Definition at line 163 of file blowfish.cpp.