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

📄 mod_exp.h

📁 含有多种公开密钥算法、多种块加密、多种数据流加密、多种HASH函数、多种CheckSum校验、多种MAC校验等几十种加密算法的程序
💻 H
字号:
/************************************************** Modular Exponentiation Header File             ** (C) 1999-2002 The Botan Project                **************************************************/#ifndef BOTAN_MODULAR_EXP_H__#define BOTAN_MODULAR_EXP_H__#include <botan/bigint.h>#include <botan/reducer.h>namespace Botan {/************************************************** Fixed Exponent Exponentiation                  **************************************************/class FixedExponent_Exp   {   public:      BigInt operator() (const BigInt& n) const { return power_mod(n); }      BigInt reduce(const BigInt& n) const { return reducer->reduce(n); }      BigInt power_mod(const BigInt&) const;      const BigInt& get_exponent() const { return exponent; }      const BigInt& get_modulus() const { return reducer->get_modulus(); }      FixedExponent_Exp& operator=(const FixedExponent_Exp&);      FixedExponent_Exp() { reducer = 0; }      FixedExponent_Exp(const BigInt&, const BigInt&);      FixedExponent_Exp(const FixedExponent_Exp&);      ~FixedExponent_Exp() { delete reducer; }   private:      ModularReducer* reducer;      BigInt exponent;   };/************************************************** Fixed Base Exponentiation                      **************************************************/class FixedBase_Exp   {   public:      BigInt operator() (const BigInt& n) const { return power_mod(n); }      BigInt reduce(const BigInt& n) const { return reducer->reduce(n); }      BigInt power_mod(const BigInt&) const;      const BigInt& get_base() const { return g[0]; }      const BigInt& get_modulus() const { return reducer->get_modulus(); }      FixedBase_Exp& operator=(const FixedBase_Exp&);      FixedBase_Exp(const BigInt&, const BigInt&);      FixedBase_Exp(const FixedBase_Exp&);      ~FixedBase_Exp() { delete reducer; }   private:      ModularReducer* reducer;      std::vector<BigInt> g;   };}#endif

⌨️ 快捷键说明

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