#include <WorldPacketCrypt.h>
WorldPacketCrypt::WorldPacketCrypt |
( |
| ) |
|
PacketCrypt(uint32 rc4InitSize)
Definition: PacketCrypt.cpp:20
Implements PacketCrypt.
31 uint8 ServerEncryptionKey[
SEED_KEY_SIZE] = { 0x08, 0xF1, 0x95, 0x9F, 0x47, 0xE5, 0xD2, 0xDB, 0xA1, 0x3D, 0x77, 0x8F, 0x3F, 0x3E, 0xE7, 0x00 };
32 uint8 ServerDecryptionKey[
SEED_KEY_SIZE] = { 0x40, 0xAA, 0xD3, 0x92, 0x26, 0x71, 0x43, 0x47, 0x3A, 0x31, 0x08, 0xA6, 0xE7, 0xDC, 0x98, 0x2A };
33 Init(K, ServerEncryptionKey, ServerDecryptionKey);
void Init(BigNumber *K) override
Definition: WorldPacketCrypt.cpp:29
#define SEED_KEY_SIZE
Definition: HmacHash.h:29
uint8_t uint8
Definition: Define.h:152
39 uint8 *encryptHash = serverEncryptHmac.ComputeHash(k);
42 uint8 *decryptHash = clientDecryptHmac.ComputeHash(k);
49 memset(syncBuf, 0, 1024);
53 memset(syncBuf, 0, 1024);
bool _initialized
Definition: PacketCrypt.h:40
Definition: HmacHash.h:34
void Init(uint8 *seed)
Definition: ARC4.cpp:42
ARC4 _serverEncrypt
Definition: PacketCrypt.h:39
#define SEED_KEY_SIZE
Definition: HmacHash.h:29
ARC4 _clientDecrypt
Definition: PacketCrypt.h:38
uint8_t uint8
Definition: Define.h:152
void UpdateData(int len, uint8 *data)
Definition: ARC4.cpp:47
The documentation for this class was generated from the following files: