136 keyData mod_seed = { { { { 0x4D, 0x80, 0x8D, 0x2C, 0x77, 0xD9, 0x05, 0xC4, 0x1A, 0x63, 0x80, 0xEC, 0x08, 0x58, 0x6A, 0xFE } } } };
138 for (
int i = 0; i < 4; ++i)
140 keyIn[i] = mod_seed.
ints.ints[i];
145 keyOut[0] = keyIn[0];
146 keyIn[0] ^= 0xDEADBEEFu;
148 keyIn[1] -= 0x35014542u;
150 keyIn[2] += 0x5313F22u;
151 keyIn[3] *= 0x1337F00Du;
152 keyOut[1] = keyIn1 - 0x6A028A84;
153 keyOut[2] = keyIn2 + 0xA627E44;
154 keyOut[3] = 0x1337F00D * keyIn[3];
uint32 ints[5]
Definition: Warden.cpp:168
uint8 * contents()
Definition: ByteBuffer.h:573
uint32 _previousTimestamp
Definition: Warden.h:134
Definition: Warden.cpp:158
void Finalize()
Definition: SHA1.cpp:65
uint32 getMSTime()
Definition: Timer.h:24
std::string Penalty(WardenCheck *check=NULL)
Definition: Warden.cpp:184
#define TC_LOG_DEBUG(filterType__,...)
Definition: Log.h:198
void UpdateData(const uint8 *dta, int len)
Definition: SHA1.cpp:35
size_t wpos() const
Definition: ByteBuffer.h:454
void Init(uint8 *seed)
Definition: ARC4.cpp:42
WorldSession * _session
Definition: Warden.h:125
uint8 _outputKey[16]
Definition: Warden.h:127
ARC4 _outputCrypto
Definition: Warden.h:130
ARC4 _inputCrypto
Definition: Warden.h:129
uint8 _inputKey[16]
Definition: Warden.h:126
bool _initialized
Definition: Warden.h:136
std::string GetPlayerInfo() const
Definition: WorldSession.cpp:195
#define TC_LOG_WARN(filterType__,...)
Definition: Log.h:204
uint8_t uint8
Definition: Define.h:152
uint8 * GetDigest(void)
Definition: SHA1.h:45
size_t rpos() const
Definition: ByteBuffer.h:441