arc4.h
来自「含有多种公开密钥算法、多种块加密、多种数据流加密、多种HASH函数、多种Chec」· C头文件 代码 · 共 45 行
H
45 行
/************************************************** ARC4 Header File ** (C) 1999-2002 The Botan Project **************************************************/#ifndef BOTAN_ARC4_H__#define BOTAN_ARC4_H__#include <botan/base.h>namespace Botan {/************************************************** ARC4 **************************************************/class ARC4 : public StreamCipher { public: void clear() throw(); std::string name() const; StreamCipher* clone() const { return new ARC4(SKIP); } ARC4(u32bit = 0); ~ARC4() { clear(); } private: void cipher(const byte[], byte[], u32bit); void key(const byte[], u32bit); void generate(); SecureBuffer<byte, 1024> buffer; SecureBuffer<u32bit, 256> state; u32bit X, Y, position; const u32bit SKIP; };/************************************************** MARK4 **************************************************/struct MARK4 : public ARC4 { MARK4() : ARC4(256) {} };}#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?