⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pipe.h

📁 含有多种公开密钥算法、多种块加密、多种数据流加密、多种HASH函数、多种CheckSum校验、多种MAC校验等几十种加密算法的程序
💻 H
字号:
/************************************************** Pipe Header File                               ** (C) 1999-2002 The Botan Project                **************************************************/#ifndef BOTAN_PIPE_H__#define BOTAN_PIPE_H__#include <botan/filter.h>#include <cstdio>#include <iosfwd>#include <vector>namespace Botan {/************************************************** Pipe                                           **************************************************/class Pipe   {   public:      static const u32bit DEFAULT_MESSAGE = 0xFFFFFFFF;      void write(const byte[], u32bit);      void write(byte input) { write(&input, 1); }      void write(const std::string&);      u32bit read(byte[], u32bit, u32bit = DEFAULT_MESSAGE);      u32bit read(byte&, u32bit = DEFAULT_MESSAGE);      SecureVector<byte> read_all(u32bit = DEFAULT_MESSAGE);      std::string read_all_as_string(u32bit = DEFAULT_MESSAGE);      u32bit remaining(u32bit = DEFAULT_MESSAGE) const;      u32bit peek(byte[], u32bit, u32bit = DEFAULT_MESSAGE);      u32bit peek(byte&, u32bit = DEFAULT_MESSAGE);      // DEPRECATED FUNCTIONS      u32bit read(u32bit m, byte b[], u32bit l) { return read(b, l, m); }      u32bit read(u32bit m, byte& b) { return read(b, m); }      u32bit peek(u32bit m, byte b[], u32bit l) { return peek(b, l, m); }      u32bit peek(u32bit m, byte& b) { return peek(b, m); }      // END DEPRECATED FUNCTIONS      u32bit default_msg() const { return default_read; }      void set_default_msg(u32bit);      u32bit message_count() const { return messages.size(); }      void start_msg();      void end_msg();      void prepend(Filter*);      void append(Filter*);      void pop();      void reset();      Pipe(Filter* = 0, Filter* = 0, Filter* = 0, Filter* = 0);      Pipe(Filter*[], u32bit);      ~Pipe() { destroy(pipe); }   private:      Pipe(const Pipe&) {}      void operator=(const Pipe&) {}      void init();      void destruct(Filter*);      void find_endpoints(Filter*);      void clear_endpoints(Filter*);      class SecureQueue* get_message(const std::string&, u32bit) const;      std::vector<class SecureQueue*> messages;      Filter* pipe;      bool locked;      u32bit default_read;   };/************************************************** I/O Operators for Pipe                         **************************************************/std::ostream& operator<<(std::ostream&, Pipe&);std::istream& operator>>(std::istream&, Pipe&);std::FILE* operator<<(std::FILE*, Pipe&);std::FILE* operator>>(std::FILE*, Pipe&);}#if defined(BOTAN_EXT_PIPE_UNIXFD_IO)  #include <botan/pipe_fd.h>#endif#endif

⌨️ 快捷键说明

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