22 lines
309 B
C++
22 lines
309 B
C++
// Copyright (C) 2007-2025 EQ2EMulator
|
|
// Licensed under GPL v3
|
|
#ifndef _EQ2_RC4_H
|
|
#define _EQ2_RC4_H
|
|
#include "../common/types.h"
|
|
class RC4
|
|
{
|
|
public:
|
|
RC4(int64 nKey);
|
|
~RC4();
|
|
|
|
void Init(int64 nKey);
|
|
void Cypher(uchar* pData, int32 nLen);
|
|
|
|
private:
|
|
uchar m_state[256];
|
|
uchar m_x;
|
|
uchar m_y;
|
|
};
|
|
#endif
|
|
|