Pol  Revision:4b29d2b
cryptbase.h File Reference
#include "../sockets.h"
#include "../uconst.h"
#include "logincrypt.h"

Go to the source code of this file.

Classes

class  Pol::Crypt::CCryptBase
 
class  Pol::Crypt::CCryptBaseCrypt
 

Namespaces

 Pol
 
 Pol::Crypt
 

Macros

#define CRYPT_AUTO_VALUE   0x80
 
#define CRYPT_GAMEKEY_COUNT   25
 
#define CRYPT_GAMEKEY_LENGTH   6
 
#define CRYPT_GAMESEED_COUNT   25
 
#define CRYPT_GAMESEED_LENGTH   8
 
#define CRYPT_GAMETABLE_MODULO   11
 
#define CRYPT_GAMETABLE_START   1
 
#define CRYPT_GAMETABLE_STEP   3
 
#define CRYPT_GAMETABLE_TRIGGER   21036
 
#define L2N(LL, C)
 
#define N2L(C, LL)
 
#define ROUND(LL, R, S, P)
 

Macro Definition Documentation

#define CRYPT_GAMEKEY_COUNT   25

Definition at line 47 of file cryptbase.h.

Referenced by Pol::Crypt::BlowFish::InitTables().

#define CRYPT_GAMEKEY_LENGTH   6

Definition at line 46 of file cryptbase.h.

Referenced by Pol::Crypt::BlowFish::InitTables().

#define CRYPT_GAMESEED_COUNT   25

Definition at line 50 of file cryptbase.h.

#define CRYPT_GAMESEED_LENGTH   8

Definition at line 49 of file cryptbase.h.

Referenced by Pol::Crypt::BlowFish::Decrypt(), and Pol::Crypt::BlowFish::Init().

#define CRYPT_GAMETABLE_MODULO   11

Definition at line 54 of file cryptbase.h.

Referenced by Pol::Crypt::BlowFish::Decrypt().

#define CRYPT_GAMETABLE_START   1

Definition at line 52 of file cryptbase.h.

Referenced by Pol::Crypt::BlowFish::Init().

#define CRYPT_GAMETABLE_STEP   3

Definition at line 53 of file cryptbase.h.

Referenced by Pol::Crypt::BlowFish::Decrypt().

#define CRYPT_GAMETABLE_TRIGGER   21036

Definition at line 55 of file cryptbase.h.

Referenced by Pol::Crypt::BlowFish::Decrypt().

#define L2N (   LL,
 
)
Value:
*( ( C )++ ) = (unsigned char)( ( ( LL ) >> 24 ) & 0xff ), \
*( ( C )++ ) = (unsigned char)( ( ( LL ) >> 16 ) & 0xff ), \
*( ( C )++ ) = (unsigned char)( ( ( LL ) >> 8 ) & 0xff ), \
*( ( C )++ ) = (unsigned char)( ( ( LL ) ) & 0xff )

Definition at line 62 of file cryptbase.h.

#define N2L (   C,
  LL 
)
Value:
LL = ( (unsigned int)( *( ( C )++ ) ) ) << 24, LL |= ( (unsigned int)( *( ( C )++ ) ) ) << 16, \
LL |= ( (unsigned int)( *( ( C )++ ) ) ) << 8, LL |= ( (unsigned int)( *( ( C )++ ) ) )

Definition at line 59 of file cryptbase.h.

#define ROUND (   LL,
  R,
  S,
 
)
Value:
LL ^= P; \
LL ^= ( ( S[( R >> 24 )] + S[0x0100 + ( ( R >> 16 ) & 0xff )] ) ^ \
S[0x0200 + ( ( R >> 8 ) & 0xff )] ) + \
S[0x0300 + ( (R)&0xff )]

Definition at line 67 of file cryptbase.h.