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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? modarith.h

?? 300個加解密的集合程序
?? 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:
	ModularArithmetic(const Integer &modulus)
		: modulus(modulus), result((word)0, modulus.reg.size) {}

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

	const Integer& GetModulus() const {return modulus;}

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

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

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

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

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

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

	Integer Inverse(const Integer &a) const;

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

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

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

	virtual Integer One() const
		{return Integer::One();}

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

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

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

	virtual Integer MultiplicativeInverse(const Integer &a) const;

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

	virtual Integer Exponentiate(const Integer &a, const Integer &e) const;

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

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

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

protected:
	Integer modulus, result;
};

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

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

	Integer ConvertOut(const Integer &a) const;

	Integer One() const
		{return Integer::Power2(WORD_BITS*modulus.reg.size)%modulus;}

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

	Integer Square(const Integer &a) const;

	Integer MultiplicativeInverse(const Integer &a) const;

	Integer Exponentiate(const Integer &a, const Integer &e) const
		{return AbstractRing<Integer>::Exponentiate(a, e);}

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

private:
	Integer u;
	SecWordBlock workspace;
};

// another alternative representation, e-mail me if you figure out how it works :)
class HalfMontgomeryRepresentation : public ModularArithmetic
{
public:
	HalfMontgomeryRepresentation(const Integer &modulus);	// modulus must be odd

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

	Integer ConvertOut(const Integer &a) const;

	Integer One() const
		{return Integer::Power2(WORD_BITS*modulus.reg.size/2)%modulus;}

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

	Integer Square(const Integer &a) const;

	Integer MultiplicativeInverse(const Integer &a) const;

	Integer Exponentiate(const Integer &a, const Integer &e) const
		{return AbstractRing<Integer>::Exponentiate(a, e);}

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

private:
	Integer v, u;
	SecWordBlock workspace;
};

NAMESPACE_END

#endif

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久国产综合色|国产精品| 久久91精品国产91久久小草| 成人性生交大片免费看在线播放| 久久先锋影音av鲁色资源网| 国产一区二区三区日韩| 久久久久久日产精品| 国产电影精品久久禁18| 国产精品国产三级国产aⅴ原创| 99免费精品视频| 亚洲一区二区三区不卡国产欧美| 9191久久久久久久久久久| 久久精品99国产精品日本| 欧美精品一区二区不卡 | 国产日韩亚洲欧美综合| 国产suv精品一区二区三区| 亚洲天堂免费看| 欧美日韩三级在线| 激情图区综合网| 国产精品白丝在线| 欧美日韩国产经典色站一区二区三区 | 丝袜美腿亚洲一区| 久久网站热最新地址| 91在线你懂得| 奇米四色…亚洲| 国产精品久久久久久久久久免费看| 99国产麻豆精品| 首页国产欧美日韩丝袜| 中文字幕久久午夜不卡| 欧美视频在线观看一区| 国产精品综合视频| 亚洲在线视频一区| 国产日本欧洲亚洲| 精品视频资源站| 成人免费福利片| 亚洲午夜在线观看视频在线| 久久蜜桃av一区精品变态类天堂| 色综合久久88色综合天天6 | 久久久www成人免费无遮挡大片| 北条麻妃国产九九精品视频| 日韩精品一卡二卡三卡四卡无卡| 中文一区二区完整视频在线观看| 欧美精品xxxxbbbb| av中文一区二区三区| 99久久精品免费精品国产| 亚洲bt欧美bt精品| 国产欧美精品一区二区色综合朱莉| 欧美性色欧美a在线播放| 成人综合激情网| 免费成人在线影院| 亚洲v中文字幕| **欧美大码日韩| 久久久久免费观看| 欧美一区二区三区视频在线| 在线亚洲一区观看| 成人激情午夜影院| 精品午夜久久福利影院| 五月婷婷综合在线| 亚洲香蕉伊在人在线观| 亚洲啪啪综合av一区二区三区| 久久蜜臀中文字幕| 日韩欧美123| 欧美精品123区| 欧美日韩中文字幕一区| 色悠悠久久综合| 99久久精品情趣| 粉嫩一区二区三区性色av| 极品少妇xxxx精品少妇偷拍| 免费成人小视频| 日韩av不卡一区二区| 亚洲国产成人av| 亚洲成av人片在www色猫咪| 亚洲综合一二区| 一区二区三区四区精品在线视频| 国产精品蜜臀在线观看| 国产女人水真多18毛片18精品视频 | 国产欧美日韩三区| 2023国产精品| 国产欧美一区视频| 国产女人18毛片水真多成人如厕| 欧美精品一区二区在线播放| 亚洲激情六月丁香| 亚洲黄色录像片| 亚洲综合一区二区精品导航| 亚洲国产精品一区二区久久| 亚洲国产一区视频| 日韩高清一区二区| 激情图区综合网| 成人免费看黄yyy456| 成人免费电影视频| 色哟哟亚洲精品| 欧美日韩国产精品自在自线| 欧美一区二区三区免费大片| 欧美一区二区三区日韩| 日韩午夜在线影院| 久久―日本道色综合久久| 久久久国产一区二区三区四区小说| 国产农村妇女精品| 亚洲精品视频在线观看免费| 亚洲一卡二卡三卡四卡无卡久久| 午夜视黄欧洲亚洲| 精品在线观看免费| av一区二区三区四区| 色婷婷综合久久久| 日韩欧美美女一区二区三区| 国产亚洲成av人在线观看导航 | 中文字幕亚洲一区二区va在线| 国产精品国产三级国产普通话99 | 亚洲精品午夜久久久| 亚洲第一成年网| 国精产品一区一区三区mba视频| 国产精品12区| 欧美色精品在线视频| 精品女同一区二区| 一区二区三区在线视频免费| 日韩不卡一区二区| 成人污污视频在线观看| 欧美日韩国产首页| 国产亚洲欧美日韩日本| 亚洲五码中文字幕| 国产成人午夜视频| 欧美丝袜第三区| 国产亚洲欧美中文| 日韩中文字幕1| jlzzjlzz亚洲女人18| 欧美一级午夜免费电影| 亚洲视频中文字幕| 国产美女一区二区三区| 欧洲色大大久久| 亚洲精品一区二区三区99| 一区二区欧美国产| 岛国av在线一区| 欧美一区二区精美| 亚洲小说欧美激情另类| www.激情成人| 国产亚洲婷婷免费| 美女视频免费一区| 欧美色电影在线| 国产精品久久福利| 九九九久久久精品| 91精品久久久久久久99蜜桃| 日韩理论片一区二区| 国产九色sp调教91| 日韩美女主播在线视频一区二区三区 | 久久天堂av综合合色蜜桃网| 亚洲一区二区影院| thepron国产精品| 久久久久久久一区| 老司机精品视频导航| 欧美日韩中字一区| 一级女性全黄久久生活片免费| 国产成人精品亚洲日本在线桃色| 日韩欧美一区二区久久婷婷| 亚洲国产精品精华液网站| 91免费版pro下载短视频| 欧美经典一区二区| 国产一区二区精品久久99 | 精品国一区二区三区| 午夜国产精品影院在线观看| 日本丶国产丶欧美色综合| 国产精品国模大尺度视频| 国产一区二区三区精品视频| 日韩精品一区二区三区swag| 日韩国产精品久久| 69av一区二区三区| 日本特黄久久久高潮| 91精品国产综合久久福利| 日韩精品电影在线| 91精品国产综合久久精品图片 | 日韩电影在线观看电影| 欧美久久久久久久久中文字幕| 亚洲综合精品自拍| 欧美亚男人的天堂| 天天操天天干天天综合网| 欧美日本不卡视频| 美国三级日本三级久久99 | 高清日韩电视剧大全免费| 日本一区二区不卡视频| 国产成人精品影院| 国产精品久久久久aaaa樱花| 91视视频在线观看入口直接观看www | 久久久久国产免费免费| 国产高清亚洲一区| 中文字幕日韩欧美一区二区三区| 99久久精品国产麻豆演员表| 亚洲综合一二三区| 欧美一区二区三区免费在线看 | 不卡电影一区二区三区| 亚洲色图欧美在线| 欧美日韩三级一区二区| 美女一区二区视频| 国产人久久人人人人爽| 91免费国产在线观看| 亚洲 欧美综合在线网络| 精品欧美乱码久久久久久1区2区| 精品一区二区日韩| 中文字幕在线观看不卡视频| 在线看日韩精品电影| 日韩精品91亚洲二区在线观看| 精品国产免费人成在线观看| 成人丝袜高跟foot|