亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? modarith.h

?? 加密函數庫:包括多種加密解密算法,數字簽名,散列算法
?? H
字號:
#ifndef CRYPTOPP_MODARITH_H
#define CRYPTOPP_MODARITH_H

// implementations are in integer.cpp

#include "cryptlib.h"
#include "misc.h"
#include "integer.h"
#include "algebra.h"

NAMESPACE_BEGIN(CryptoPP)

//! .
class ModularArithmetic : public AbstractRing<Integer>
{
public:

	typedef int RandomizationParameter;
	typedef Integer Element;

	ModularArithmetic(const Integer &modulus = Integer::One())
		: modulus(modulus), result((word)0, modulus.reg.size()) {}

	ModularArithmetic(const ModularArithmetic &ma)
		: modulus(ma.modulus), result((word)0, modulus.reg.size()) {}

	ModularArithmetic(BufferedTransformation &bt);	// construct from BER encoded parameters

	virtual ModularArithmetic * Clone() const {return new ModularArithmetic(*this);}

	void DEREncode(BufferedTransformation &bt) const;

	void DEREncodeElement(BufferedTransformation &out, const Element &a) const;
	void BERDecodeElement(BufferedTransformation &in, Element &a) const;

	const Integer& GetModulus() const {return modulus;}
	void SetModulus(const Integer &newModulus) {modulus = newModulus; result.reg.resize(modulus.reg.size());}

	virtual bool IsMontgomeryRepresentation() const {return false;}

	virtual Integer ConvertIn(const Integer &a) const
		{return a%modulus;}

	virtual Integer ConvertOut(const Integer &a) const
		{return a;}

	const Integer& Half(const Integer &a) const;

	bool Equal(const Integer &a, const Integer &b) const
		{return a==b;}

	const Integer& Identity() const
		{return Integer::Zero();}

	const Integer& Add(const Integer &a, const Integer &b) const;

	Integer& Accumulate(Integer &a, const Integer &b) const;

	const Integer& Inverse(const Integer &a) const;

	const Integer& Subtract(const Integer &a, const Integer &b) const;

	Integer& Reduce(Integer &a, const Integer &b) const;

	const Integer& Double(const Integer &a) const
		{return Add(a, a);}

	const Integer& MultiplicativeIdentity() const
		{return Integer::One();}

	const Integer& Multiply(const Integer &a, const Integer &b) const
		{return result1 = a*b%modulus;}

	const Integer& Square(const Integer &a) const
		{return result1 = a.Squared()%modulus;}

	bool IsUnit(const Integer &a) const
		{return Integer::Gcd(a, modulus).IsUnit();}

	const Integer& MultiplicativeInverse(const Integer &a) const
		{return result1 = a.InverseMod(modulus);}

	const Integer& Divide(const Integer &a, const Integer &b) const
		{return Multiply(a, MultiplicativeInverse(b));}

	Integer CascadeExponentiate(const Integer &x, const Integer &e1, const Integer &y, const Integer &e2) const;

	void SimultaneousExponentiate(Element *results, const Element &base, const Integer *exponents, unsigned int exponentsCount) const;

	unsigned int MaxElementBitLength() const
		{return (modulus-1).BitCount();}

	unsigned int MaxElementByteLength() const
		{return (modulus-1).ByteCount();}

	Element RandomElement( RandomNumberGenerator &rng , const RandomizationParameter &ignore_for_now = 0 ) const
		// left RandomizationParameter arg as ref in case RandomizationParameter becomes a more complicated struct
	{ 
		return Element( rng , Integer( (long) 0) , modulus - Integer( (long) 1 )   ) ; 
	}   

	static const RandomizationParameter DefaultRandomizationParameter ;

protected:
	Integer modulus;
	mutable Integer result, result1;

};

// const ModularArithmetic::RandomizationParameter ModularArithmetic::DefaultRandomizationParameter = 0 ;

//! do modular arithmetics in Montgomery representation for increased speed
class MontgomeryRepresentation : public ModularArithmetic
{
public:
	MontgomeryRepresentation(const Integer &modulus);	// modulus must be odd

	virtual ModularArithmetic * Clone() const {return new MontgomeryRepresentation(*this);}

	bool IsMontgomeryRepresentation() const {return true;}

	Integer ConvertIn(const Integer &a) const
		{return (a<<(WORD_BITS*modulus.reg.size()))%modulus;}

	Integer ConvertOut(const Integer &a) const;

	const Integer& MultiplicativeIdentity() const
		{return result1 = Integer::Power2(WORD_BITS*modulus.reg.size())%modulus;}

	const Integer& Multiply(const Integer &a, const Integer &b) const;

	const Integer& Square(const Integer &a) const;

	const Integer& MultiplicativeInverse(const Integer &a) const;

	Integer CascadeExponentiate(const Integer &x, const Integer &e1, const Integer &y, const Integer &e2) const
		{return AbstractRing<Integer>::CascadeExponentiate(x, e1, y, e2);}

	void SimultaneousExponentiate(Element *results, const Element &base, const Integer *exponents, unsigned int exponentsCount) const
		{AbstractRing<Integer>::SimultaneousExponentiate(results, base, exponents, exponentsCount);}

private:
	Integer u;
	mutable SecAlignedWordBlock workspace;
};

NAMESPACE_END

#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产精品黑人久久久| 欧美不卡视频一区| 成人看片黄a免费看在线| 国产激情91久久精品导航| 国产在线乱码一区二区三区| 久久精品国产99国产精品| 久久99精品国产麻豆婷婷| 狠狠色综合播放一区二区| 国产乱人伦精品一区二区在线观看 | 美女性感视频久久| 老司机精品视频导航| 国产在线播放一区二区三区| 成人午夜私人影院| 欧美亚洲综合一区| 欧美一区二区三区小说| 精品三级av在线| 国产精品美女一区二区| 亚洲欧洲色图综合| 亚洲午夜一区二区| 精品一区二区综合| 成人国产精品免费观看动漫| 91在线观看视频| 欧美色图天堂网| 久久久亚洲精品一区二区三区| 国产精品亲子乱子伦xxxx裸| 一区二区三区四区国产精品| 亚洲图片自拍偷拍| 国产在线不卡一区| 91麻豆swag| 欧美福利视频一区| 国产精品国产三级国产aⅴ中文 | 欧美日韩dvd在线观看| 日韩精品一区二区三区在线| 国产日韩欧美精品一区| 亚洲国产精品久久不卡毛片| 国产黄色精品网站| 欧美三级蜜桃2在线观看| 精品少妇一区二区三区| 亚洲欧美日韩系列| 国产丶欧美丶日本不卡视频| 欧美三级日韩三级| 亚洲欧洲日韩女同| 久久99精品国产.久久久久久 | 石原莉奈一区二区三区在线观看| 国产精品夜夜嗨| 91精品国产综合久久精品麻豆 | 日韩电影在线观看网站| 99在线精品观看| 欧美r级在线观看| 亚洲一区二区三区三| 成人av免费在线观看| 欧美一级午夜免费电影| 一区二区在线观看免费| av在线不卡观看免费观看| xf在线a精品一区二区视频网站| 一区二区三区四区亚洲| 波多野结衣91| 中文字幕精品在线不卡| 国产一区二区福利| 日韩一区二区三区高清免费看看| 亚洲黄色小视频| 91免费观看视频在线| 日本一区二区三区四区在线视频| 国产麻豆9l精品三级站| 精品少妇一区二区三区日产乱码| 偷偷要91色婷婷| 欧美日韩高清在线播放| 亚洲国产一区在线观看| 欧美性做爰猛烈叫床潮| 曰韩精品一区二区| 91国在线观看| 亚洲高清在线精品| 精品视频一区二区三区免费| 一区二区日韩av| 欧美日韩美少妇 | 日韩欧美激情四射| 麻豆国产精品官网| 精品国产一区二区三区久久影院| 蓝色福利精品导航| 亚洲精品一区在线观看| 国产另类ts人妖一区二区| 久久综合精品国产一区二区三区| 激情综合网最新| 欧美国产在线观看| 91麻豆自制传媒国产之光| 亚洲精品国产视频| 4438成人网| 国产一区二区三区高清播放| 久久久久久亚洲综合| eeuss鲁片一区二区三区| 综合色天天鬼久久鬼色| 欧美性做爰猛烈叫床潮| 日韩成人一级大片| 久久免费看少妇高潮| 成+人+亚洲+综合天堂| 一区二区三区日韩欧美| 91精品国产aⅴ一区二区| 国产专区欧美精品| 亚洲乱码中文字幕| 日韩一区二区三区在线观看| 国产乱妇无码大片在线观看| 亚洲人一二三区| 日韩欧美国产一区二区三区| 国产成人午夜片在线观看高清观看| 国产精品久久久久永久免费观看| 欧美在线一二三| 国产综合成人久久大片91| 亚洲色图另类专区| 精品理论电影在线观看| 一本一道波多野结衣一区二区| 美洲天堂一区二卡三卡四卡视频| 国产精品伦一区二区三级视频| 欧美色综合影院| 国产福利一区二区三区视频| 亚洲成人综合网站| 久久久一区二区三区捆绑**| 欧洲亚洲国产日韩| 成人福利视频网站| 日韩av中文字幕一区二区三区| 亚洲欧洲日韩一区二区三区| 日韩欧美国产wwwww| 一本久久综合亚洲鲁鲁五月天| 久久99国产精品免费| 亚洲综合色丁香婷婷六月图片| 久久久精品黄色| 日韩一区二区在线观看视频| 91国偷自产一区二区开放时间| 国产精品一色哟哟哟| 日本美女一区二区三区视频| 一区二区三区四区不卡在线| 国产精品久久午夜夜伦鲁鲁| 精品久久久久av影院| 51久久夜色精品国产麻豆| 99精品在线观看视频| 国产91色综合久久免费分享| 精品一区二区免费视频| 亚洲成人动漫av| 一区二区三区四区不卡在线| 国产精品国产成人国产三级| 久久色.com| 精品国产乱码久久| 欧美成人一区二区三区片免费| 欧美猛男男办公室激情| 欧美日韩美少妇 | 奇米精品一区二区三区在线观看| 亚洲国产视频a| 亚洲成在人线免费| 亚洲成av人片一区二区| 天天操天天综合网| 亚洲国产日日夜夜| 首页国产丝袜综合| 日本不卡高清视频| 精品一区二区在线播放| 九色综合国产一区二区三区| 麻豆久久一区二区| 激情综合一区二区三区| 国产一二精品视频| 成人免费三级在线| 色综合天天综合网天天狠天天| 色综合中文综合网| 国产白丝网站精品污在线入口| 国产成人综合精品三级| 丁香婷婷综合色啪| 91同城在线观看| 欧美午夜理伦三级在线观看| 欧美精品一卡二卡| 精品国产精品一区二区夜夜嗨| 久久色视频免费观看| 综合精品久久久| 亚洲国产裸拍裸体视频在线观看乱了| 视频一区国产视频| 国产成人高清在线| 欧洲一区二区三区在线| 日韩午夜在线播放| 国产精品久久久久一区| 亚洲高清久久久| 国产老妇另类xxxxx| 91麻豆福利精品推荐| 91麻豆精品国产91久久久 | 亚洲成人中文在线| 紧缚捆绑精品一区二区| 99久精品国产| 日韩一区二区精品在线观看| 国产精品毛片久久久久久久| 亚洲大片精品永久免费| 国产精品小仙女| 欧美人妇做爰xxxⅹ性高电影| 久久这里只精品最新地址| 综合久久久久综合| 激情图片小说一区| 欧日韩精品视频| 国产拍欧美日韩视频二区| 亚洲无线码一区二区三区| 国产精品羞羞答答xxdd| 欧美日韩亚洲综合| 国产精品久久久久三级| 日韩av不卡一区二区| 91麻豆产精品久久久久久| 久久久天堂av| 青娱乐精品视频|