mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
26 lines
635 B
C++
26 lines
635 B
C++
/*
|
|
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-GPL2
|
|
* Copyright (C) 2008-2016 TrinityCore <http://www.trinitycore.org/>
|
|
* Copyright (C) 2005-2009 MaNGOS <http://getmangos.com/>
|
|
*/
|
|
|
|
#ifndef _AUTH_SARC4_H
|
|
#define _AUTH_SARC4_H
|
|
|
|
#include "Define.h"
|
|
#include <openssl/evp.h>
|
|
|
|
class ARC4
|
|
{
|
|
public:
|
|
ARC4(uint8 len);
|
|
ARC4(uint8 *seed, uint8 len);
|
|
~ARC4();
|
|
void Init(uint8 *seed);
|
|
void UpdateData(int len, uint8 *data);
|
|
private:
|
|
EVP_CIPHER_CTX m_ctx;
|
|
};
|
|
|
|
#endif
|