Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
AuthCrypt Class Reference

#include <AuthCrypt.h>

Collaboration diagram for AuthCrypt:

Public Member Functions

 AuthCrypt ()
void DecryptRecv (uint8 *data, size_t len)
void EncryptSend (uint8 *data, size_t len)
void Init (SessionKey const &K)
bool IsInitialized () const

Private Attributes

SkyFire::Crypto::ARC4 _clientDecrypt
bool _initialized
SkyFire::Crypto::ARC4 _serverEncrypt

Detailed Description

Definition at line 13 of file AuthCrypt.h.

Constructor & Destructor Documentation

◆ AuthCrypt()

AuthCrypt::AuthCrypt ( )

Definition at line 10 of file AuthCrypt.cpp.

References _initialized.

Member Function Documentation

◆ DecryptRecv()

void AuthCrypt::DecryptRecv ( uint8 * data,
size_t len )

Definition at line 30 of file AuthCrypt.cpp.

References _clientDecrypt, _initialized, and ASSERT.

◆ EncryptSend()

void AuthCrypt::EncryptSend ( uint8 * data,
size_t len )

Definition at line 36 of file AuthCrypt.cpp.

References _initialized, _serverEncrypt, and ASSERT.

◆ Init()

◆ IsInitialized()

bool AuthCrypt::IsInitialized ( ) const
inline

Definition at line 22 of file AuthCrypt.h.

References _initialized.

Referenced by ServerPktHeader::ServerPktHeader().

Member Data Documentation

◆ _clientDecrypt

SkyFire::Crypto::ARC4 AuthCrypt::_clientDecrypt
private

Definition at line 25 of file AuthCrypt.h.

Referenced by DecryptRecv(), and Init().

◆ _initialized

bool AuthCrypt::_initialized
private

Definition at line 27 of file AuthCrypt.h.

Referenced by AuthCrypt(), DecryptRecv(), EncryptSend(), Init(), and IsInitialized().

◆ _serverEncrypt

SkyFire::Crypto::ARC4 AuthCrypt::_serverEncrypt
private

Definition at line 26 of file AuthCrypt.h.

Referenced by EncryptSend(), and Init().


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