Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

ClientCrypt Class Reference

#include <clientcrypt.h>

List of all members.

Public Methods

void decrypt (unsigned char *in, unsigned char *out, int length)
void encrypt (unsigned char *in, unsigned char *out, int length)
void preview (unsigned char *in, unsigned char *out, int length)
void setLoginCryptKeys (UI32 key1, UI32 key2)
void setGameEncryption (int version)
int getCryptVersion ()
void setCryptMode (UI08 mode)
UI08 getCryptMode ()
virtual ~ClientCrypt ()
 ClientCrypt ()
void init (unsigned char seed[4])
void ClientCrypt::init (UI32 pseed)
void setCryptSeed (UI08 pseed[4])
void setCryptSeed (UI32 pseed)
UI32 getCryptSeed ()
void setEntering (bool state)
bool getEntering ()

Private Attributes

LoginCrypt loginCrypter
GameCryptgameCrypter
GameCryptcrypt203
UI08 crypt_mode
unsigned char clientSeed [4]
UI32 loginKey1
UI32 loginKey2
int cryptVersion
bool compressed
bool first_send
bool entering
unsigned char cryptPacket [MAXBUFFER]
unsigned char decryptPacket [MAXBUFFER]


Constructor & Destructor Documentation

ClientCrypt::~ClientCrypt   [virtual]
 

ClientCrypt::ClientCrypt  
 


Member Function Documentation

void ClientCrypt::ClientCrypt::init UI32    pseed
 

void ClientCrypt::decrypt unsigned char *    in,
unsigned char *    out,
int    length
 

void ClientCrypt::encrypt unsigned char *    in,
unsigned char *    out,
int    length
 

UI08 ClientCrypt::getCryptMode   [inline]
 

UI32 ClientCrypt::getCryptSeed   [inline]
 

int ClientCrypt::getCryptVersion   [inline]
 

bool ClientCrypt::getEntering  
 

void ClientCrypt::init unsigned char    seed[4]
 

void ClientCrypt::preview unsigned char *    in,
unsigned char *    out,
int    length
 

void ClientCrypt::setCryptMode UI08    mode
 

void ClientCrypt::setCryptSeed UI32    pseed
 

void ClientCrypt::setCryptSeed UI08    pseed[4]
 

void ClientCrypt::setEntering bool    state
 

void ClientCrypt::setGameEncryption int    version
 

void ClientCrypt::setLoginCryptKeys UI32    key1,
UI32    key2
 


Member Data Documentation

unsigned char ClientCrypt::clientSeed[4] [private]
 

bool ClientCrypt::compressed [private]
 

GameCrypt* ClientCrypt::crypt203 [private]
 

UI08 ClientCrypt::crypt_mode [private]
 

unsigned char ClientCrypt::cryptPacket[MAXBUFFER] [private]
 

int ClientCrypt::cryptVersion [private]
 

unsigned char ClientCrypt::decryptPacket[MAXBUFFER] [private]
 

bool ClientCrypt::entering [private]
 

bool ClientCrypt::first_send [private]
 

GameCrypt* ClientCrypt::gameCrypter [private]
 

LoginCrypt ClientCrypt::loginCrypter [private]
 

UI32 ClientCrypt::loginKey1 [private]
 

UI32 ClientCrypt::loginKey2 [private]
 


The documentation for this class was generated from the following files: SourceForge.net Logo