📄 arc4.h
字号:
#ifndef CRYPTOPP_ARC4_H
#define CRYPTOPP_ARC4_H
#include "cryptlib.h"
#include "misc.h"
NAMESPACE_BEGIN(CryptoPP)
class ARC4 : public RandomNumberGenerator,
public StreamCipher
{
public:
enum {KEYLENGTH=16}; // default key length
ARC4(const byte *userKey, unsigned int keyLength=KEYLENGTH);
~ARC4();
byte GetByte();
byte ProcessByte(byte input);
void ProcessString(byte *outString, const byte *inString, unsigned int length);
void ProcessString(byte *inoutString, unsigned int length);
static unsigned int KeyLength(unsigned int keylength)
{return keylength < 1 ? 1 : (keylength <= 256 ? keylength : 256);}
private:
SecByteBlock m_state;
byte m_x, m_y;
};
NAMESPACE_END
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -