es_unix.h

来自「含有多种公开密钥算法、多种块加密、多种数据流加密、多种HASH函数、多种Chec」· C头文件 代码 · 共 49 行

H
49
字号
/************************************************** Unix EntropySource Header File                 ** (C) 1999-2002 The Botan Project                **************************************************/#include <botan/base.h>#include <vector>#ifndef BOTAN_EXT_ENTROPY_SRC_UNIX_H__#define BOTAN_EXT_ENTROPY_SRC_UNIX_H__namespace Botan {struct Unix_Program   {   Unix_Program(const std::string& n, const std::string a, u32bit p)      { name = n; args = a; priority = p; working = true; }   Unix_Program(const std::string& n, u32bit p)      { name = n; priority = p; working = true; }   std::string name, args;   u32bit priority;   bool working;   };class Unix_EntropySource : public EntropySource   {   public:      u32bit fast_poll(byte[], u32bit);      u32bit slow_poll(byte[], u32bit);      void add_sources(const Unix_Program[], u32bit);      Unix_EntropySource(bool = true);      Unix_EntropySource(const Unix_Program[], u32bit, bool = true);   private:      static const Unix_Program DEFAULT_SOURCES[];      void add_default_sources();      u32bit gather(byte[], u32bit, u32bit);      u32bit gather_entropy(Unix_Program&);      void timestamp();      SecureBuffer<byte, 256> buffer;      std::vector<Unix_Program> sources;      u32bit position;   };}#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?