aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Cryptography/Authentication
diff options
context:
space:
mode:
authorXTZGZoReX <none@none>2010-08-08 03:55:24 +0200
committerXTZGZoReX <none@none>2010-08-08 03:55:24 +0200
commit66f1ac04d521bd8c512404d7db87eefaa77d526f (patch)
tree9179e7229ee2d1ddeaaf4c4132da461507ac83df /src/server/shared/Cryptography/Authentication
parentd15556589d0a124caa354842ea59819adf6adea1 (diff)
* Rename SARC4 to ARC4.
--HG-- branch : trunk
Diffstat (limited to 'src/server/shared/Cryptography/Authentication')
-rw-r--r--src/server/shared/Cryptography/Authentication/AuthCrypt.cpp6
-rw-r--r--src/server/shared/Cryptography/Authentication/AuthCrypt.h4
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