Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
AuthCrypt.h
Go to the documentation of this file.
1
/*
2
* This file is part of Project SkyFire https://www.projectskyfire.org.
3
* See LICENSE.md file for Copyright information
4
*/
5
6
#ifndef _AUTHCRYPT_H
7
#define _AUTHCRYPT_H
8
9
#include "
ARC4.h
"
10
#include "
AuthDefines.h
"
11
#include <array>
12
13
class
AuthCrypt
14
{
15
public
:
16
AuthCrypt
();
17
18
void
Init
(
SessionKey
const
& K);
19
void
DecryptRecv
(
uint8
* data,
size_t
len);
20
void
EncryptSend
(
uint8
* data,
size_t
len);
21
22
bool
IsInitialized
()
const
{
return
_initialized
; }
23
24
private
:
25
SkyFire::Crypto::ARC4
_clientDecrypt
;
26
SkyFire::Crypto::ARC4
_serverEncrypt
;
27
bool
_initialized
;
28
};
29
#endif
ARC4.h
AuthDefines.h
SessionKey
std::array< uint8, SESSION_KEY_LENGTH > SessionKey
Definition
AuthDefines.h:8
uint8
std::uint8_t uint8
Definition
Define.h:79
AuthCrypt::AuthCrypt
AuthCrypt()
Definition
AuthCrypt.cpp:10
AuthCrypt::_clientDecrypt
SkyFire::Crypto::ARC4 _clientDecrypt
Definition
AuthCrypt.h:25
AuthCrypt::EncryptSend
void EncryptSend(uint8 *data, size_t len)
Definition
AuthCrypt.cpp:36
AuthCrypt::IsInitialized
bool IsInitialized() const
Definition
AuthCrypt.h:22
AuthCrypt::_initialized
bool _initialized
Definition
AuthCrypt.h:27
AuthCrypt::Init
void Init(SessionKey const &K)
Definition
AuthCrypt.cpp:15
AuthCrypt::_serverEncrypt
SkyFire::Crypto::ARC4 _serverEncrypt
Definition
AuthCrypt.h:26
AuthCrypt::DecryptRecv
void DecryptRecv(uint8 *data, size_t len)
Definition
AuthCrypt.cpp:30
SkyFire::Crypto::ARC4
Definition
ARC4.h:17
src
server
shared
Cryptography
Authentication
AuthCrypt.h
Generated on
for Project SkyFire Core by
1.17.0