TrinityCore
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
ARC4.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
3
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
4
*
5
* This program is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License as published by the
7
* Free Software Foundation; either version 2 of the License, or (at your
8
* option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful, but WITHOUT
11
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13
* more details.
14
*
15
* You should have received a copy of the GNU General Public License along
16
* with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#ifndef _AUTH_SARC4_H
20
#define _AUTH_SARC4_H
21
22
#include <openssl/evp.h>
23
#include "
Define.h
"
24
25
class
TC_COMMON_API
ARC4
26
{
27
public
:
28
ARC4
(
uint32
len);
29
ARC4
(
uint8
*seed,
uint32
len);
30
~
ARC4
();
31
void
Init(
uint8
*seed);
32
void
UpdateData
(
int
len,
uint8
*data);
33
private
:
34
EVP_CIPHER_CTX
m_ctx
;
35
};
36
37
#endif
UpdateData
Definition:
UpdateData.h:59
ARC4::m_ctx
EVP_CIPHER_CTX m_ctx
Definition:
ARC4.h:34
uint32
uint32_t uint32
Definition:
Define.h:150
ARC4
Definition:
ARC4.h:25
TC_COMMON_API
#define TC_COMMON_API
Definition:
Define.h:116
uint8
uint8_t uint8
Definition:
Define.h:152
Define.h
Generated on Tue Apr 5 2016 20:13:12 for TrinityCore by
1.8.8