TrinityCore
WorldPacketCrypt Class Reference

#include <WorldPacketCrypt.h>

Public Member Functions

 WorldPacketCrypt ()
 
void Init (Trinity::Crypto::AES::Key const &key)
 
bool PeekDecryptRecv (uint8 *data, size_t length)
 
bool DecryptRecv (uint8 *data, size_t length, Trinity::Crypto::AES::Tag &tag)
 
bool EncryptSend (uint8 *data, size_t length, Trinity::Crypto::AES::Tag &tag)
 
bool IsInitialized () const
 

Protected Attributes

Trinity::Crypto::AES _clientDecrypt
 
Trinity::Crypto::AES _serverEncrypt
 
uint64 _clientCounter
 
uint64 _serverCounter
 
bool _initialized
 

Detailed Description

Definition at line 23 of file WorldPacketCrypt.h.

Constructor & Destructor Documentation

◆ WorldPacketCrypt()

WorldPacketCrypt::WorldPacketCrypt ( )

Definition at line 22 of file WorldPacketCrypt.cpp.

Member Function Documentation

◆ DecryptRecv()

bool WorldPacketCrypt::DecryptRecv ( uint8 data,
size_t  length,
Trinity::Crypto::AES::Tag tag 
)

Definition at line 56 of file WorldPacketCrypt.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EncryptSend()

bool WorldPacketCrypt::EncryptSend ( uint8 data,
size_t  length,
Trinity::Crypto::AES::Tag tag 
)

Definition at line 71 of file WorldPacketCrypt.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Init()

void WorldPacketCrypt::Init ( Trinity::Crypto::AES::Key const &  key)

Definition at line 26 of file WorldPacketCrypt.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsInitialized()

bool WorldPacketCrypt::IsInitialized ( ) const
inline

Definition at line 33 of file WorldPacketCrypt.h.

+ Here is the caller graph for this function:

◆ PeekDecryptRecv()

bool WorldPacketCrypt::PeekDecryptRecv ( uint8 data,
size_t  length 
)

Definition at line 44 of file WorldPacketCrypt.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _clientCounter

uint64 WorldPacketCrypt::_clientCounter
protected

Definition at line 38 of file WorldPacketCrypt.h.

◆ _clientDecrypt

Trinity::Crypto::AES WorldPacketCrypt::_clientDecrypt
protected

Definition at line 36 of file WorldPacketCrypt.h.

◆ _initialized

bool WorldPacketCrypt::_initialized
protected

Definition at line 40 of file WorldPacketCrypt.h.

◆ _serverCounter

uint64 WorldPacketCrypt::_serverCounter
protected

Definition at line 39 of file WorldPacketCrypt.h.

◆ _serverEncrypt

Trinity::Crypto::AES WorldPacketCrypt::_serverEncrypt
protected

Definition at line 37 of file WorldPacketCrypt.h.


The documentation for this class was generated from the following files: