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

📄 pk_misc.h

📁 含有多种公开密钥算法、多种块加密、多种数据流加密、多种HASH函数、多种CheckSum校验、多种MAC校验等几十种加密算法的程序
💻 H
字号:
/************************************************** Miscellaneous PK Functions Header File         ** (C) 1999-2002 The Botan Project                **************************************************/#ifndef BOTAN_PUBKEY_MISC_H__#define BOTAN_PUBKEY_MISC_H__#include <botan/base.h>namespace Botan {/************************************************** Encoding Method for Encryption                 **************************************************/class EME   {   public:      virtual u32bit maximum_input_size(u32bit) const = 0;      SecureVector<byte> encode(const byte[], u32bit, u32bit) const;      SecureVector<byte> encode(const SecureVector<byte>&, u32bit) const;      SecureVector<byte> decode(const byte[], u32bit, u32bit) const;      SecureVector<byte> decode(const SecureVector<byte>&, u32bit) const;      virtual ~EME() {}   private:      virtual SecureVector<byte> pad(const byte[], u32bit, u32bit) const = 0;      virtual SecureVector<byte> unpad(const byte[], u32bit, u32bit) const = 0;   };/************************************************** Encoding Method for Signatures, Appendix       **************************************************/class EMSA   {   public:      virtual void update(const byte[], u32bit) = 0;      virtual SecureVector<byte> raw_data() = 0;      virtual SecureVector<byte> encoding_of(const SecureVector<byte>&,                                             u32bit) = 0;      virtual bool verify(const SecureVector<byte>&, const SecureVector<byte>&,                          u32bit) throw();      virtual ~EMSA() {}   };/************************************************** Mask Generation Function                       **************************************************/class MGF   {   public:      virtual void mask(const byte[], u32bit, byte[], u32bit) const = 0;      virtual ~MGF() {}   };/************************************************** Key Derivation Function                        **************************************************/class KDF   {   public:      SymmetricKey derive_key(const byte[], u32bit, u32bit) const;      SymmetricKey derive_key(const SecureVector<byte>&, u32bit) const;      virtual ~KDF() {}   private:      virtual SymmetricKey derive(const byte[], u32bit, u32bit) const = 0;   };}#endif

⌨️ 快捷键说明

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