From 66f1ac04d521bd8c512404d7db87eefaa77d526f Mon Sep 17 00:00:00 2001 From: XTZGZoReX Date: Sun, 8 Aug 2010 03:55:24 +0200 Subject: * Rename SARC4 to ARC4. --HG-- branch : trunk --- src/server/shared/Cryptography/Authentication/AuthCrypt.cpp | 6 +++--- src/server/shared/Cryptography/Authentication/AuthCrypt.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/server/shared/Cryptography/Authentication') diff --git a/src/server/shared/Cryptography/Authentication/AuthCrypt.cpp b/src/server/shared/Cryptography/Authentication/AuthCrypt.cpp index 2dfcebfa932..182ae2bc5b7 100644 --- a/src/server/shared/Cryptography/Authentication/AuthCrypt.cpp +++ b/src/server/shared/Cryptography/Authentication/AuthCrypt.cpp @@ -43,13 +43,13 @@ void AuthCrypt::Init(BigNumber *K) HmacHash clientDecryptHmac(SEED_KEY_SIZE, (uint8*)ServerDecryptionKey); uint8 *decryptHash = clientDecryptHmac.ComputeHash(K); - //SARC4 _serverDecrypt(encryptHash); + //ARC4 _serverDecrypt(encryptHash); _clientDecrypt.Init(decryptHash); _serverEncrypt.Init(encryptHash); - //SARC4 _clientEncrypt(decryptHash); + //ARC4 _clientEncrypt(decryptHash); + // Drop first 1024 bytes, as WoW uses ARC4-drop1024. uint8 syncBuf[1024]; - memset(syncBuf, 0, 1024); _serverEncrypt.UpdateData(1024, syncBuf); diff --git a/src/server/shared/Cryptography/Authentication/AuthCrypt.h b/src/server/shared/Cryptography/Authentication/AuthCrypt.h index 5a2430611a4..16f0c858f90 100644 --- a/src/server/shared/Cryptography/Authentication/AuthCrypt.h +++ b/src/server/shared/Cryptography/Authentication/AuthCrypt.h @@ -39,8 +39,8 @@ class AuthCrypt bool IsInitialized() { return _initialized; } private: - SARC4 _clientDecrypt; - SARC4 _serverEncrypt; + ARC4 _clientDecrypt; + ARC4 _serverEncrypt; bool _initialized; }; #endif -- cgit v1.2.3