diff options
| author | Winfidonarleyan <dowlandtop@yandex.com> | 2022-11-23 21:12:20 +0300 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-24 01:12:20 +0700 | 
| commit | a1a1528cb4a9ed6f0220621fe6ecf9e2c36a5534 (patch) | |
| tree | 04598163bda650f353cc1e12872c03f94537f700 /src/common/Cryptography/Authentication/AuthCrypt.cpp | |
| parent | 4a2964e10a03a2b6ba2077e6b362b8a6ba6675fb (diff) | |
feat(Core/Crypto): add support `OpenSSL 3.0` (#13354)
Diffstat (limited to 'src/common/Cryptography/Authentication/AuthCrypt.cpp')
| -rw-r--r-- | src/common/Cryptography/Authentication/AuthCrypt.cpp | 7 | 
1 files changed, 2 insertions, 5 deletions
diff --git a/src/common/Cryptography/Authentication/AuthCrypt.cpp b/src/common/Cryptography/Authentication/AuthCrypt.cpp index 791c7bcf65..21115ed155 100644 --- a/src/common/Cryptography/Authentication/AuthCrypt.cpp +++ b/src/common/Cryptography/Authentication/AuthCrypt.cpp @@ -19,19 +19,16 @@  #include "Errors.h"  #include "HMAC.h" -AuthCrypt::AuthCrypt() : _initialized(false) -{ -} -  void AuthCrypt::Init(SessionKey const& K)  {      uint8 ServerEncryptionKey[] = { 0xCC, 0x98, 0xAE, 0x04, 0xE8, 0x97, 0xEA, 0xCA, 0x12, 0xDD, 0xC0, 0x93, 0x42, 0x91, 0x53, 0x57 };      _serverEncrypt.Init(Acore::Crypto::HMAC_SHA1::GetDigestOf(ServerEncryptionKey, K)); +      uint8 ServerDecryptionKey[] = { 0xC2, 0xB3, 0x72, 0x3C, 0xC6, 0xAE, 0xD9, 0xB5, 0x34, 0x3C, 0x53, 0xEE, 0x2F, 0x43, 0x67, 0xCE };      _clientDecrypt.Init(Acore::Crypto::HMAC_SHA1::GetDigestOf(ServerDecryptionKey, K));      // Drop first 1024 bytes, as WoW uses ARC4-drop1024. -    std::array<uint8, 1024> syncBuf; +    std::array<uint8, 1024> syncBuf{};      _serverEncrypt.UpdateData(syncBuf);      _clientDecrypt.UpdateData(syncBuf);  | 
