pk_filts.h

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

H
78
字号
/************************************************** PK Filters Header File                         ** (C) 1999-2002 The Botan Project                **************************************************/#ifndef BOTAN_PK_FILTERS_H__#define BOTAN_PK_FILTERS_H__#include <botan/filter.h>#include <botan/pubkey.h>namespace Botan {/************************************************** PK_Encryptor Filter                            **************************************************/class PK_Encryptor_Filter : public Filter   {   public:      void write(const byte[], u32bit);      void end_msg();      PK_Encryptor_Filter(PK_Encryptor* c) : cipher(c) {}      ~PK_Encryptor_Filter() { delete cipher; }   private:      PK_Encryptor* cipher;      SecureVector<byte> buffer;   };/************************************************** PK_Decryptor Filter                            **************************************************/class PK_Decryptor_Filter : public Filter   {   public:      void write(const byte[], u32bit);      void end_msg();      PK_Decryptor_Filter(PK_Decryptor* c) : cipher(c) {}      ~PK_Decryptor_Filter() { delete cipher; }   private:      PK_Decryptor* cipher;      SecureVector<byte> buffer;   };/************************************************** PK_Signer Filter                               **************************************************/class PK_Signer_Filter : public Filter   {   public:      void write(const byte[], u32bit);      void end_msg();      PK_Signer_Filter(PK_Signer* s) : signer(s) {}      ~PK_Signer_Filter() { delete signer; }   private:      PK_Signer* signer;   };/************************************************** PK_Verifier Filter                             **************************************************/class PK_Verifier_Filter : public Filter   {   public:      void write(const byte[], u32bit);      void end_msg();      void set_signature(const byte[], u32bit);      PK_Verifier_Filter(PK_Verifier* v) : verifier(v) {}      PK_Verifier_Filter(PK_Verifier*, const byte[], u32bit);      ~PK_Verifier_Filter() { delete verifier; }   private:      PK_Verifier* verifier;      SecureVector<byte> signature;   };}#endif

⌨️ 快捷键说明

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