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

📄 pk_keys.h

📁 含有多种公开密钥算法、多种块加密、多种数据流加密、多种HASH函数、多种CheckSum校验、多种MAC校验等几十种加密算法的程序
💻 H
字号:
/************************************************** PK Key Types Header File                       ** (C) 1999-2002 The Botan Project                **************************************************/#ifndef BOTAN_PK_KEYS_H__#define BOTAN_PK_KEYS_H__#include <botan/base.h>namespace Botan {/************************************************** Generic PK Key                                 **************************************************/class PK_Key   {   public:      virtual u32bit max_input_bits() const { return 0; }      virtual bool check_params() const { return true; }      virtual ~PK_Key() {}   };/************************************************** PK Encrypting Key                              **************************************************/class PK_Encrypting_Key : public virtual PK_Key   {   public:      virtual SecureVector<byte> encrypt(const byte[], u32bit) const = 0;      virtual ~PK_Encrypting_Key() {}   };/************************************************** PK Decrypting Key                              **************************************************/class PK_Decrypting_Key : public virtual PK_Key   {   public:      virtual SecureVector<byte> decrypt(const byte[], u32bit) const = 0;      virtual ~PK_Decrypting_Key() {}   };/************************************************** PK Signing Key                                 **************************************************/class PK_Signing_Key : public virtual PK_Key   {   public:      virtual SecureVector<byte> sign(const byte[], u32bit) const = 0;      virtual ~PK_Signing_Key() {}   };/************************************************** PK Verifying Key, Message Recovery Version     **************************************************/class PK_Verifying_with_MR_Key : public virtual PK_Key   {   public:      virtual SecureVector<byte> verify(const byte[], u32bit) const = 0;      virtual ~PK_Verifying_with_MR_Key() {}   };/************************************************** PK Verifying Key, No Message Recovery Version  **************************************************/class PK_Verifying_wo_MR_Key : public virtual PK_Key   {   public:      virtual bool verify(const byte[], u32bit,                          const byte[], u32bit) const = 0;      virtual ~PK_Verifying_wo_MR_Key() {}   };/************************************************** PK Secret Value Derivation Key                 **************************************************/class PK_Key_Agreement_Key : public virtual PK_Key   {   public:      virtual SecureVector<byte> derive_key(const byte[], u32bit) const = 0;      virtual SecureVector<byte> public_value() const = 0;      virtual ~PK_Key_Agreement_Key() {}   };}#endif

⌨️ 快捷键说明

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