diff options
Diffstat (limited to 'src/server/shared/Cryptography/Authentication')
| -rw-r--r-- | src/server/shared/Cryptography/Authentication/AuthCrypt.cpp | 6 | ||||
| -rw-r--r-- | src/server/shared/Cryptography/Authentication/AuthCrypt.h | 4 |
2 files changed, 5 insertions, 5 deletions
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 |
