*Update to Mangos 6938. (Only build for VC9)
--HG-- branch : trunk
This commit is contained in:
1 parent
c81299e653
commit
3cb4e7c716
171 files changed
+11207
-5092
No files matched your search
@@ -50,9 +50,8 @@ void AuthCrypt::DecryptRecv(uint8 *data, size_t len)
|
||||
void AuthCrypt::EncryptSend(uint8 *data, size_t len)
|
||||
{
|
||||
if (!_initialized) return;
|
||||
if (len < CRYPTED_SEND_LEN) return;
|
||||
|
||||
for (size_t t = 0; t < CRYPTED_SEND_LEN; t++)
|
||||
for (size_t t = 0; t < len; t++)
|
||||
{
|
||||
_send_i %= _key.size();
|
||||
uint8 x = (data[t] ^ _key[_send_i]) + _send_j;
|
||||
|
||||
Reference in new issue
Block a user