|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <WardenMac.h>
Public Member Functions | |
| ClientWardenModule * | GetModuleForClient () |
| void | HandleData (ByteBuffer &buff) |
| void | HandleHashResult (ByteBuffer &buff) |
| void | Init (WorldSession *session, SessionKey const &k) |
| void | InitializeModule () |
| void | RequestData () |
| void | RequestHash () |
| WardenMac () | |
| ~WardenMac () | |
| Public Member Functions inherited from Warden | |
| void | DecryptData (uint8 *buffer, uint32 length) |
| void | EncryptData (uint8 *buffer, uint32 length) |
| std::string | Penalty (WardenCheck *check=NULL) |
| void | RequestModule () |
| void | SendModuleToClient () |
| void | Update () |
| Warden () | |
| virtual | ~Warden () |
Additional Inherited Members | |
| Static Public Member Functions inherited from Warden | |
| static uint32 | BuildChecksum (const uint8 *data, uint32 length) |
| static bool | IsValidCheckSum (uint32 checksum, const uint8 *data, const uint16 length) |
Definition at line 17 of file WardenMac.h.
| WardenMac::WardenMac | ( | ) |
Definition at line 20 of file WardenMac.cpp.
References Warden::Warden().
| WardenMac::~WardenMac | ( | ) |
Definition at line 22 of file WardenMac.cpp.
|
virtual |
Implements Warden.
Definition at line 57 of file WardenMac.cpp.
References ClientWardenModule::CompressedData, ClientWardenModule::CompressedSize, ClientWardenModule::Key, Module_0DBBF209A27B1E279A9FEC5C168A15F7_Data, and Module_0DBBF209A27B1E279A9FEC5C168A15F7_Key.
Referenced by Init().
|
virtual |
Implements Warden.
Definition at line 201 of file WardenMac.cpp.
References Warden::_clientResponseTimer, Warden::_dataSent, Warden::_session, MD5Hash::Finalize(), SkyFire::Impl::GenericHash< HashCreator, DigestLength >::Finalize(), SkyFire::Impl::GenericHash< HashCreator, DigestLength >::GetDigest(), ByteBuffer::read(), SF_LOG_DEBUG, MD5Hash::UpdateData(), and SkyFire::Impl::GenericHash< HashCreator, DigestLength >::UpdateData().
|
virtual |
Implements Warden.
Definition at line 116 of file WardenMac.cpp.
References Warden::_initialized, Warden::_inputCrypto, Warden::_inputKey, Warden::_outputCrypto, Warden::_outputKey, Warden::_previousTimestamp, Warden::_session, ByteBuffer::contents(), SkyFire::Impl::GenericHash< HashCreator, DigestLength >::Finalize(), SkyFire::Impl::GenericHash< HashCreator, DigestLength >::GetDigest(), getMSTime(), keyData::ints, Warden::Penalty(), ByteBuffer::rpos(), SF_LOG_DEBUG, SF_LOG_WARN, SkyFire::Impl::GenericHash< HashCreator, DigestLength >::UpdateData(), and ByteBuffer::wpos().
|
virtual |
Implements Warden.
Definition at line 24 of file WardenMac.cpp.
References Warden::_inputCrypto, Warden::_inputKey, Warden::_module, Warden::_outputCrypto, Warden::_outputKey, Warden::_seed, Warden::_session, SkyFire::Impl::ByteArrayToHexStr(), SessionKeyGenerator< Hash >::Generate(), WorldSession::GetAccountId(), GetModuleForClient(), Warden::RequestModule(), and SF_LOG_DEBUG.
|
virtual |
|
virtual |
Implements Warden.
Definition at line 177 of file WardenMac.cpp.
References Warden::_dataSent, Warden::_session, ByteBuffer::append(), ByteBuffer::contents(), Warden::EncryptData(), ByteBuffer::hexlike(), SF_LOG_DEBUG, ByteBuffer::size(), SMSG_WARDEN_DATA, and WARDEN_SMSG_CHEAT_CHECKS_REQUEST.
|
virtual |
Implements Warden.
Definition at line 84 of file WardenMac.cpp.
References Warden::_seed, Warden::_session, ByteBuffer::append(), WardenHashRequest::Command, Warden::EncryptData(), WardenHashRequest::Seed, SF_LOG_DEBUG, SMSG_WARDEN_DATA, and WARDEN_SMSG_HASH_REQUEST.