#include <clientcrypt.h>
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 |
| GameCrypt * | gameCrypter |
| GameCrypt * | crypt203 |
| 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] |
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|