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

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

?? gf2e.txt

?? 密碼大家Shoup寫的數論算法c語言實現
?? TXT
字號:
/**************************************************************************\MODULE: GF2ESUMMARY:The class GF2E is used to represent polynomials in F_2[X] modulo apolynomial P.  The modulus P may be any polynomial with deg(P) > 0,not necessarily irreducible.  Objects of the class GF2E are represented as a GF2X of degree < deg(P).An executing program maintains a "current modulus", which is set to Pusing GF2E::init(P).  The current modulus *must* be initialized beforeany GF2E constructors are invoked.The modulus may be changed, and a mechanism is provided for saving andrestoring a modulus (see classes GF2EBak and GF2EContext below).NOTE: if P is a trinomial X^n + X^k + 1, or a pentanomialX^n + X^k3 + X^k2 + X^k1 + 1, or of the form X^n + g, whereg has low degree, then performance will be somewhat improved.Such polynomials are constructed by the routinesBuildSparseIrred and BuildIrred in GF2XFactoring.\**************************************************************************/#include <NTL/GF2X.h>class GF2E {public:      GF2E(); // initial value 0   GF2E(const GF2E& a); // copy constructor      GF2E& operator=(const GF2E& a); // assignment   GF2E& operator=(GF2 a); // assignment   GF2E& operator=(long a); // assignment      ~GF2E(); // destructor   void init(const GF2X& P);   // GF2E::init(P) initializes the current modulus to P;   // required: deg(P) >= 1.      static const GF2XModulus& modulus();   // GF2E::modulus() yields read-only reference to the current modulus    static long degree();   // GF2E::degree() returns deg(P)};const GF2X& rep(const GF2E& a); // read-only access to representation of a/**************************************************************************\                                  Comparison\**************************************************************************/long operator==(const GF2E& a, const GF2E& b);long operator!=(const GF2E& a, const GF2E& b);long IsZero(const GF2E& a);  // test for 0long IsOne(const GF2E& a);  // test for 1// PROMOTIONS: ==, != promote {long, GF2} to GF2E on (a, b)./**************************************************************************\                                    Addition \**************************************************************************/// operator notation:GF2E operator+(const GF2E& a, const GF2E& b);GF2E operator-(const GF2E& a, const GF2E& b);GF2E operator-(const GF2E& a);GF2E& operator+=(GF2E& x, const GF2E& a);GF2E& operator+=(GF2E& x, GF2 a);GF2E& operator+=(GF2E& x, long a);GF2E& operator++(GF2E& x); // prefixvoid operator++(GF2E& x, int); // postfixGF2E& operator-=(GF2E& x, const GF2E& a);GF2E& operator-=(GF2E& x, GF2 a);GF2E& operator-=(GF2E& x, long a);GF2E& operator--(GF2E& x); // prefixvoid operator--(GF2E& x, int); // postfix// procedural versions:void add(GF2E& x, const GF2E& a, const GF2E& b); // x = a + bvoid sub(GF2E& x, const GF2E& a, const GF2E& b); // x = a - b = a + bvoid negate(GF2E& x, const GF2E& a); // x = - a = a// PROMOTIONS: +, -, add, sub promote {long, GF2} to GF2E on (a, b)./**************************************************************************\                                  Multiplication \**************************************************************************/// operator notation:GF2E operator*(const GF2E& a, const GF2E& b);GF2E& operator*=(GF2E& x, const GF2E& a);GF2E& operator*=(GF2E& x, GF2 a);GF2E& operator*=(GF2E& x, long a);// procedural versions:void mul(GF2E& x, const GF2E& a, const GF2E& b); // x = a * bvoid sqr(GF2E& x, const GF2E& a); // x = a^2GF2E sqr(const GF2E& a); // PROMOTIONS: *, mul promote {long, GF2} to GF2E on (a, b)./**************************************************************************\                                     Division\**************************************************************************/// operator notation:GF2E operator/(const GF2E& a, const GF2E& b);GF2E& operator/=(GF2E& x, const GF2E& a);GF2E& operator/=(GF2E& x, GF2 a);GF2E& operator/=(GF2E& x, long a);// procedural versions:void div(GF2E& x, const GF2E& a, const GF2E& b);// x = a/b.  If b is not invertible, an error is raised.void inv(GF2E& x, const GF2E& a);GF2E inv(const GF2E& a);// x = 1/aPROMOTIONS: /, div promote {long, GF2} to GF2E on (a, b)./**************************************************************************\                                  Exponentiation\**************************************************************************/void power(GF2E& x, const GF2E& a, const ZZ& e); GF2E power(const GF2E& a, const ZZ& e);void power(GF2E& x, const GF2E& a, long e); GF2E power(const GF2E& a, long e);// x = a^e (e may be negative)/**************************************************************************\                               Random Elements\**************************************************************************/void random(GF2E& x);GF2E random_GF2E();// x = random element in GF2E./**************************************************************************\                                  Traces\**************************************************************************/void trace(GF2& x, const GF2E& a);  // x = trace of aGF2 trace(const GF2E& a);/**************************************************************************\                                Input/Output\**************************************************************************/ostream& operator<<(ostream& s, const GF2E& a);istream& operator>>(istream& s, GF2E& x);// a GF2X is read and reduced mod p/**************************************************************************\                       Modulus Switching A class GF2EBak is provided for "backing up" the current modulus.Here is what you do to save the current modulus, temporarilyset it to something new, and then restore it:   GF2EBak bak;   bak.save();   // save current modulus (if any)   GF2E::init(P);  // set modulus to desired value P      // ...   bak.restore(); // restore old modulus (if any)Note that between the save and restore, you may have several calls toGF2E::init, each of which simply clobbers the previous modulus.The GF2EBak interface is good for implementing simple stack-likemodulus "context switching".  For more general context switching,see GF2EContext below...........................................................................When the current modulus is changed, there may be extantGF2E objects. If the old modulus was saved and then later restored, these objects can be used again as if the modulus had never changed.  Note, however, that if a GF2E object is created under one modulus and then used in any way (except destroyed) under another, program behavior is not predictable.  This condition is notexplicitly checked for, but an error is likely to be raised.One should also not presume that things will work properlyif the modulus is changed, but its value happens to be the same---one should restore the same "context", from either a GF2EBakor a GF2EContext object.  This is anyway more efficient.\**************************************************************************/class GF2EBak {public:   // To describe this logic, think of a GF2EBak object   // of having two components: a modulus Q (possibly "null") and    // an "auto-restore bit" b.   // There is also a global current modulus P (initially "null").   GF2EBak();  // Q = "null", b = 0   ~GF2EBak();  // if (b) P = Q   void save();  // Q = P, b = 1    void restore();  // P = Q, b = 0private:   GF2EBak(const GF2EBak&);  // copy disabled   void operator=(const GF2EBak&);  // assignment disabled};// more general context switching:class GF2EContext {// A GF2EContext object has a modulus Q (possibly "null"),// but has no auto-restore bit like a GF2EBak object.// However, these objects can be initialized and copied with// complete generality.// As above, P is the current global modulus (initially "null")public:GF2EContext(); // Q = "null"GF2EContext(const GF2X& new_Q); // Q = new_Qvoid save(); // Q = Pvoid restore() const; // P = QGF2EContext(const GF2EContext&);  // copyGF2EContext& operator=(const GF2EContext&); // assignment~GF2EContext(); // destructor};/**************************************************************************\                               Miscellany\**************************************************************************/void clear(GF2E& x); // x = 0void set(GF2E& x); // x = 1static const GF2E& GF2E::zero();// GF2E::zero() yields a read-only reference to zerostatic long GF2X::WordLength();// GF2E::size() returns # of words needed to store a polynomial of// degree < GF2E::degree()void swap(GF2E& x, GF2E& y);// swap x and y (done by "pointer swapping", if possible).static ZZ& GF2E::cardinality();// yields the cardinality, i.e., 2^{GF2E::degree()}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
奇米777欧美一区二区| 精品一区二区三区av| 日韩午夜三级在线| eeuss鲁一区二区三区| 日本美女一区二区三区视频| 国产精品日日摸夜夜摸av| 6080日韩午夜伦伦午夜伦| www.欧美日韩国产在线| 精品写真视频在线观看| 亚洲www啪成人一区二区麻豆| 国产女人aaa级久久久级| 日韩欧美在线123| 欧美日韩精品一区二区| zzijzzij亚洲日本少妇熟睡| 毛片av中文字幕一区二区| 亚洲免费伊人电影| 亚洲国产精品t66y| 久久午夜免费电影| 6080日韩午夜伦伦午夜伦| 在线国产电影不卡| 91丨porny丨中文| 国产精品一区二区免费不卡| 久久国产免费看| 日本不卡在线视频| 日韩影院精彩在线| 亚洲影视资源网| 亚洲欧美激情小说另类| 国产精品对白交换视频| 国产精品人成在线观看免费| 久久精品一区蜜桃臀影院| 久久婷婷综合激情| 欧美精品一区二区三区一线天视频| 91精品国产91久久综合桃花| 欧美剧在线免费观看网站| 欧美蜜桃一区二区三区| 欧美午夜影院一区| 欧美日韩国产精选| 在线不卡中文字幕播放| 欧美精品久久99久久在免费线 | 美国一区二区三区在线播放| 亚洲va韩国va欧美va| 亚洲成人久久影院| 丝袜美腿成人在线| 男人操女人的视频在线观看欧美| 日本欧美一区二区在线观看| 免费人成在线不卡| 久久精品国产久精国产| 国产一区 二区 三区一级| 经典三级在线一区| 国产老女人精品毛片久久| 韩国毛片一区二区三区| 国产很黄免费观看久久| 北条麻妃一区二区三区| 欧洲精品一区二区三区在线观看| 色婷婷久久久综合中文字幕| 欧美日韩一区二区电影| 欧美一级理论片| 久久综合九色欧美综合狠狠| 久久综合久久99| 中文字幕一区二区三区四区| 亚洲伦理在线精品| 亚洲成人一区二区在线观看| 蜜桃精品视频在线| 国产91丝袜在线观看| 9l国产精品久久久久麻豆| 欧洲精品一区二区三区在线观看| 欧美老肥妇做.爰bbww| 26uuu欧美| 亚洲另类色综合网站| 免费在线看成人av| 成人免费视频app| 欧美亚洲国产一区在线观看网站| 欧美一区二区播放| 欧美国产乱子伦| 亚洲自拍偷拍欧美| 激情综合五月婷婷| 91美女片黄在线观看| 欧美高清激情brazzers| 国产肉丝袜一区二区| 亚洲一区二区成人在线观看| 久久精品国产久精国产爱| 91丨九色丨国产丨porny| 欧美一区二区久久| 18欧美乱大交hd1984| 日韩国产欧美视频| av电影一区二区| 欧美一区午夜视频在线观看| 中文字幕一区二区在线播放| 免费成人美女在线观看| 91一区一区三区| 精品99久久久久久| 亚洲午夜电影在线观看| 成人午夜电影网站| 日韩一卡二卡三卡| 亚洲三级免费观看| 国产精品一区久久久久| 精品视频123区在线观看| 国产精品视频第一区| 蜜臀av一区二区在线免费观看| av男人天堂一区| 久久夜色精品国产噜噜av| 亚洲成人中文在线| 97精品视频在线观看自产线路二| 精品国产伦一区二区三区观看体验| 亚洲精品免费一二三区| 成人小视频免费观看| 日韩精品一区二区三区视频在线观看 | 日韩小视频在线观看专区| 亚洲婷婷在线视频| 国产成人自拍网| 日韩三级视频中文字幕| 一级日本不卡的影视| 成人免费三级在线| 国产亚洲欧美色| 久久成人18免费观看| 欧美另类久久久品| 亚洲精品中文字幕乱码三区| 波多野结衣中文一区| 久久精品亚洲乱码伦伦中文 | 久久蜜桃av一区精品变态类天堂| 视频一区欧美精品| 欧美日韩激情在线| 一区二区三区久久久| 91毛片在线观看| 综合久久一区二区三区| 成av人片一区二区| 中文字幕av资源一区| 国产精品99久久久久久久女警| 欧美成人伊人久久综合网| 视频一区二区国产| 在线综合+亚洲+欧美中文字幕| 一卡二卡三卡日韩欧美| 欧美在线免费视屏| 亚洲国产中文字幕在线视频综合| 在线观看网站黄不卡| 亚洲综合图片区| 欧美三区免费完整视频在线观看| 亚洲黄色录像片| 在线观看91精品国产入口| 一区二区三区国产| 欧美日韩精品福利| 日本成人在线不卡视频| 欧美成人三级在线| 国产一区高清在线| 国产精品日韩精品欧美在线| 成人av在线资源网| 国产精品久久国产精麻豆99网站| 99久久久精品免费观看国产蜜| 一区在线播放视频| 欧洲一区二区av| 日韩电影在线观看一区| 欧美一级国产精品| 国产一区二区三区蝌蚪| 国产精品久久毛片av大全日韩| 色香色香欲天天天影视综合网| 亚洲一区日韩精品中文字幕| 欧美一区午夜精品| 国产精品一区在线观看你懂的| 国产精品传媒在线| 在线一区二区视频| 日韩在线一区二区三区| 久久奇米777| 色综合天天综合网国产成人综合天| 亚洲一本大道在线| 精品久久久久av影院| 成人sese在线| 午夜成人免费视频| 国产亚洲欧美日韩日本| 91视频国产观看| 免费的成人av| 国产精品第五页| 欧美一区二区在线看| 国产宾馆实践打屁股91| 有码一区二区三区| 日韩亚洲欧美在线| 99视频在线观看一区三区| 午夜在线成人av| 久久久不卡影院| 欧美日韩国产免费一区二区 | 99精品国产99久久久久久白柏| 亚洲福利视频导航| 欧美韩国日本一区| 在线播放亚洲一区| 粉嫩13p一区二区三区| 天天做天天摸天天爽国产一区| 久久久久久久综合狠狠综合| 在线看日本不卡| 国产麻豆午夜三级精品| 亚洲在线中文字幕| 国产日韩欧美a| 91精品综合久久久久久| 97se亚洲国产综合自在线不卡| 六月丁香婷婷久久| 中文字幕日韩精品一区| 日韩西西人体444www| 欧美午夜片在线看| 99久久亚洲一区二区三区青草| 狠狠v欧美v日韩v亚洲ⅴ| 亚洲综合一区二区三区| 欧美激情一区二区|