AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "AuthCrypt.h"
Public Member Functions | |
AuthCrypt ()=default | |
void | Init (SessionKey const &K) |
void | DecryptRecv (uint8 *data, std::size_t len) |
void | EncryptSend (uint8 *data, std::size_t len) |
bool | IsInitialized () const |
Private Attributes | |
Acore::Crypto::ARC4 | _clientDecrypt |
Acore::Crypto::ARC4 | _serverEncrypt |
bool | _initialized { false } |
|
default |
void AuthCrypt::DecryptRecv | ( | uint8 * | data, |
std::size_t | len | ||
) |
References _clientDecrypt, _initialized, ASSERT, and Acore::Crypto::ARC4::UpdateData().
Referenced by WorldSocket::ReadHeaderHandler().
void AuthCrypt::EncryptSend | ( | uint8 * | data, |
std::size_t | len | ||
) |
References _initialized, _serverEncrypt, ASSERT, and Acore::Crypto::ARC4::UpdateData().
Referenced by WorldSocket::Update().
void AuthCrypt::Init | ( | SessionKey const & | K | ) |
References _clientDecrypt, _initialized, _serverEncrypt, Acore::Impl::GenericHMAC< HashCreator, DigestLength >::GetDigestOf(), Acore::Crypto::ARC4::Init(), and Acore::Crypto::ARC4::UpdateData().
Referenced by WorldSocket::HandleAuthSessionCallback().
|
inline |
Referenced by WorldSocket::ReadHeaderHandler(), and WorldSocket::SendPacket().
|
private |
Referenced by DecryptRecv(), and Init().
|
private |
Referenced by DecryptRecv(), EncryptSend(), and Init().
|
private |
Referenced by EncryptSend(), and Init().