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

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

?? zzx.h

?? 可以根據NTL庫進RSA加密、解密算法的實現
?? H
?? 第 1 頁 / 共 2 頁
字號:
inline ZZX operator-(const ZZX& a, const ZZ& b)
   { ZZX x; sub(x, a, b); NTL_OPT_RETURN(ZZX, x); }

inline ZZX operator-(const ZZX& a, long b)
   { ZZX x; sub(x, a, b); NTL_OPT_RETURN(ZZX, x); }

inline ZZX operator-(const ZZ& a, const ZZX& b)
   { ZZX x; sub(x, a, b); NTL_OPT_RETURN(ZZX, x); }

inline ZZX operator-(long a, const ZZX& b)
   { ZZX x; sub(x, a, b); NTL_OPT_RETURN(ZZX, x); }


inline ZZX& operator+=(ZZX& x, const ZZX& b)
   { add(x, x, b); return x; }

inline ZZX& operator+=(ZZX& x, const ZZ& b)
   { add(x, x, b); return x; }

inline ZZX& operator+=(ZZX& x, long b)
   { add(x, x, b); return x; }

inline ZZX& operator-=(ZZX& x, const ZZX& b)
   { sub(x, x, b); return x; }

inline ZZX& operator-=(ZZX& x, const ZZ& b)
   { sub(x, x, b); return x; }

inline ZZX& operator-=(ZZX& x, long b)
   { sub(x, x, b); return x; }


inline ZZX operator-(const ZZX& a) 
   { ZZX x; negate(x, a); NTL_OPT_RETURN(ZZX, x); }

inline ZZX& operator++(ZZX& x) { add(x, x, 1); return x; }
inline void operator++(ZZX& x, int) { add(x, x, 1); }
inline ZZX& operator--(ZZX& x) { sub(x, x, 1); return x; }
inline void operator--(ZZX& x, int) { sub(x, x, 1); }


/*****************************************************************

                        Multiplication

******************************************************************/


void mul(ZZX& x, const ZZX& a, const ZZX& b);
// x = a * b


void sqr(ZZX& x, const ZZX& a);
inline ZZX sqr(const ZZX& a)
   { ZZX x; sqr(x, a); NTL_OPT_RETURN(ZZX, x); }
// x = a^2

void PlainMul(ZZX& x, const ZZX& a, const ZZX& b);
void PlainSqr(ZZX& x, const ZZX& a);

void KarMul(ZZX& x, const ZZX& a, const ZZX& b);
void KarSqr(ZZX& x, const ZZX& a);

void HomMul(ZZX& x, const ZZX& a, const ZZX& b);
void HomSqr(ZZX& x, const ZZX& a);

void SSMul(ZZX& x, const ZZX& a, const ZZX& b);
void SSSqr(ZZX& x, const ZZX& a);

double SSRatio(long na, long maxa, long nb, long maxb);


void mul(ZZX & x, const ZZX& a, const ZZ& b);
void mul(ZZX& x, const ZZX& a, long b);

inline void mul(ZZX& x, const ZZ& a, const ZZX& b) { mul(x, b, a); } 
inline void mul(ZZX& x, long a, const ZZX& b) { mul(x, b, a); } 


inline ZZX operator*(const ZZX& a, const ZZX& b)
   { ZZX x; mul(x, a, b); NTL_OPT_RETURN(ZZX, x); }

inline ZZX operator*(const ZZX& a, const ZZ& b)
   { ZZX x; mul(x, a, b); NTL_OPT_RETURN(ZZX, x); }

inline ZZX operator*(const ZZX& a, long b)
   { ZZX x; mul(x, a, b); NTL_OPT_RETURN(ZZX, x); }

inline ZZX operator*(const ZZ& a, const ZZX& b)
   { ZZX x; mul(x, a, b); NTL_OPT_RETURN(ZZX, x); }

inline ZZX operator*(long a, const ZZX& b)
   { ZZX x; mul(x, a, b); NTL_OPT_RETURN(ZZX, x); }

inline ZZX& operator*=(ZZX& x, const ZZX& b)
   { mul(x, x, b); return x; }

inline ZZX& operator*=(ZZX& x, const ZZ& b)
   { mul(x, x, b); return x; }

inline ZZX& operator*=(ZZX& x, long b)
   { mul(x, x, b); return x; }






/*************************************************************

                      Division

**************************************************************/



// "plain" versions
void PlainPseudoDivRem(ZZX& q, ZZX& r, const ZZX& a, const ZZX& b);
void PlainPseudoDiv(ZZX& q, const ZZX& a, const ZZX& b);
void PlainPseudoRem(ZZX& r, const ZZX& a, const ZZX& b);

// "homomorphic imaging" versions
void HomPseudoDivRem(ZZX& q, ZZX& r, const ZZX& a, const ZZX& b);
void HomPseudoDiv(ZZX& q, const ZZX& a, const ZZX& b);
void HomPseudoRem(ZZX& r, const ZZX& a, const ZZX& b);

inline void PseudoDivRem(ZZX& q, ZZX& r, const ZZX& a, const ZZX& b)
// performs pseudo-division:  computes q and r
// with deg(r) < deg(b), and LeadCoeff(b)^(deg(a)-deg(b)+1) a = b q + r.
// current implementation always defaults to "plain"

   { PlainPseudoDivRem(q, r, a, b); }

inline void PseudoDiv(ZZX& q, const ZZX& a, const ZZX& b)

   { PlainPseudoDiv(q, a, b); }

inline void PseudoRem(ZZX& r, const ZZX& a, const ZZX& b)

   { PlainPseudoRem(r, a, b); }

inline ZZX PseudoDiv(const ZZX& a, const ZZX& b)
   { ZZX x; PseudoDiv(x, a, b); NTL_OPT_RETURN(ZZX, x); }

inline ZZX PseudoRem(const ZZX& a, const ZZX& b)
   { ZZX x; PseudoRem(x, a, b); NTL_OPT_RETURN(ZZX, x); }


#ifndef NTL_TRANSITION

void DivRem(ZZX& q, ZZX& r, const ZZX& a, const ZZX& b);

void div(ZZX& q, const ZZX& a, const ZZX& b);
void div(ZZX& q, const ZZX& a, const ZZ& b);
void div(ZZX& q, const ZZX& a, long b);

void rem(ZZX& r, const ZZX& a, const ZZX& b);

inline ZZX operator/(const ZZX& a, const ZZX& b)
   { ZZX x; div(x, a, b); NTL_OPT_RETURN(ZZX, x); }

inline ZZX operator/(const ZZX& a, const ZZ& b)
   { ZZX x; div(x, a, b); NTL_OPT_RETURN(ZZX, x); }

inline ZZX operator/(const ZZX& a, long b)
   { ZZX x; div(x, a, b); NTL_OPT_RETURN(ZZX, x); }

inline ZZX& operator/=(ZZX& x, const ZZ& b)
   { div(x, x, b); return x; }

inline ZZX& operator/=(ZZX& x, long b)
   { div(x, x, b); return x; }

inline ZZX& operator/=(ZZX& x, const ZZX& b)
   { div(x, x, b); return x; }


inline ZZX operator%(const ZZX& a, const ZZX& b)
   { ZZX x; rem(x, a, b); NTL_OPT_RETURN(ZZX, x); }

inline ZZX& operator%=(ZZX& x, const ZZX& b)
   { rem(x, x, b); return x; }

#endif


// Modular arithemtic---f must be monic, and other args
// must have degree less than that of f

void MulMod(ZZX& x, const ZZX& a, const ZZX& b, const ZZX& f);

inline ZZX MulMod(const ZZX& a, const ZZX& b, const ZZX& f)
   { ZZX x; MulMod(x, a, b, f); NTL_OPT_RETURN(ZZX, x); }

void SqrMod(ZZX& x, const ZZX& a, const ZZX& f);

inline ZZX SqrMod(const ZZX& a, const ZZX& f)
   { ZZX x; SqrMod(x, a, f); NTL_OPT_RETURN(ZZX, x); }

void MulByXMod(ZZX& x, const ZZX& a, const ZZX& f);

inline ZZX MulByXMod(const ZZX& a, const ZZX& f)
   { ZZX x; MulByXMod(x, a, f); NTL_OPT_RETURN(ZZX, x); }


// these always use "plain" division
long PlainDivide(ZZX& q, const ZZX& a, const ZZX& b);
long PlainDivide(const ZZX& a, const ZZX& b);

// these always use "homomorphic imaging"
long HomDivide(ZZX& q, const ZZX& a, const ZZX& b);
long HomDivide(const ZZX& a, const ZZX& b);

long divide(ZZX& q, const ZZX& a, const ZZX& b);
// if b | a, sets q = a/b and returns 1; otherwise returns 0

long divide(const ZZX& a, const ZZX& b);


long divide(ZZX& q, const ZZX& a, const ZZ& b);
// if b | a, sets q = a/b and returns 1; otherwise returns 0

long divide(const ZZX& a, const ZZ& b);
// if b | a, returns 1; otherwise returns 0

//single-precision versions
long divide(ZZX& q, const ZZX& a, long b);
long divide(const ZZX& a, long b);



void content(ZZ& d, const ZZX& f);
// d = content of f, sign(d) == sign(LeadCoeff(f))

inline ZZ content(const ZZX& f)
   { ZZ x; content(x, f); NTL_OPT_RETURN(ZZ, x); }



void PrimitivePart(ZZX& pp, const ZZX& f);
// pp = primitive part of f, LeadCoeff(pp) >= 0

inline ZZX PrimitivePart(const ZZX& f)
   { ZZX x; PrimitivePart(x, f); NTL_OPT_RETURN(ZZX, x); }
   

void GCD(ZZX& d, const ZZX& a, const ZZX& b);
// d = gcd(a, b), LeadCoeff(d) >= 0

inline ZZX GCD(const ZZX& a, const ZZX& b)
   { ZZX x; GCD(x, a, b); NTL_OPT_RETURN(ZZX, x); }

long MaxBits(const ZZX& f);
// returns max NumBits of coefficients of f

long CharPolyBound(const ZZX& a, const ZZX& f);



/***************************************************************

                      traces, norms, resultants

****************************************************************/

void TraceVec(vec_ZZ& S, const ZZX& f);
// S[i] = Trace(X^i mod f), for i = 0..deg(f)-1.
// f must be a monic polynomial.

inline vec_ZZ TraceVec(const ZZX& f)
   { vec_ZZ x; TraceVec(x, f); NTL_OPT_RETURN(vec_ZZ, x); }

void TraceMod(ZZ& res, const ZZX& a, const ZZX& f);
inline ZZ TraceMod(const ZZX& a, const ZZX& f)
   { ZZ x; TraceMod(x, a, f); NTL_OPT_RETURN(ZZ, x); }
// res = trace of (a mod f)
// f must be monic


void resultant(ZZ& res, const ZZX& a, const ZZX& b, long deterministic=0);
inline ZZ resultant(const ZZX& a, const ZZX& b, long deterministic=0)
   { ZZ x; resultant(x, a, b, deterministic); NTL_OPT_RETURN(ZZ, x); }

// res = resultant of a and b
// if !deterministic, then it may use a randomized strategy
//    that errs with probability no more than 2^{-80}.

void NormMod(ZZ& res, const ZZX& a, const ZZX& f, long deterministic=0);
inline ZZ NormMod(const ZZX& a, const ZZX& f, long deterministic=0)
   { ZZ x; NormMod(x, a, f, deterministic); NTL_OPT_RETURN(ZZ, x); }
// res = norm of (a mod f)
// f must be monic
// if !deterministic, then it may use a randomized strategy
//    that errs with probability no more than 2^{-80}.


void discriminant(ZZ& d, const ZZX& a, long deterministic=0);
inline ZZ discriminant(const ZZX& a, long deterministic=0)
   { ZZ x; discriminant(x, a, deterministic); NTL_OPT_RETURN(ZZ, x); }
// d = discriminant of a
//   = (-1)^{m(m-1)/2} resultant(a, a')/lc(a),
//     where m = deg(a)
// if !deterministic, then it may use a randomized strategy
//    that errs with probability no more than 2^{-80}.


void CharPolyMod(ZZX& g, const ZZX& a, const ZZX& f, long deterministic=0);
inline ZZX CharPolyMod(const ZZX& a, const ZZX& f, long deterministic=0)
   { ZZX x; CharPolyMod(x, a, f, deterministic); NTL_OPT_RETURN(ZZX, x); }
// g = char poly of (a mod f)
// f must be monic
// if !deterministic, then it may use a randomized strategy
//    that errs with probability no more than 2^{-80}.


void MinPolyMod(ZZX& g, const ZZX& a, const ZZX& f);
inline ZZX MinPolyMod(const ZZX& a, const ZZX& f)
   { ZZX x; MinPolyMod(x, a, f); NTL_OPT_RETURN(ZZX, x); }
// g = min poly of (a mod f)
// f must be monic
// may use a probabilistic strategy that errs with
//   probability no more than 2^{-80}


void XGCD(ZZ& r, ZZX& s, ZZX& t, const ZZX& a, const ZZX& b, 
          long deterministic=0);
// r = resultant of a and b;
// if r != 0, then computes s and t such that:
//   a*s + b*t = r;
// otherwise s and t not affected.
// if !deterministic, then resultant computation may use a randomized strategy
//    that errs with probability no more than 2^{-80}.



/******************************************************

      Incremental Chinese Remaindering

*******************************************************/

long CRT(ZZX& a, ZZ& prod, const zz_pX& A);
long CRT(ZZX& a, ZZ& prod, const ZZ_pX& A);
// If p is the current modulus with (p, prod) = 1;
// Computes b such that b = a mod prod and b = A mod p,
//    with coefficients in the interval (-p*prod/2, p*prod/2];
// Sets a = b, prod = p*prod, and returns 1 if a's value changed.




// vectors

NTL_vector_decl(ZZX,vec_ZZX)

NTL_eq_vector_decl(ZZX,vec_ZZX)

NTL_io_vector_decl(ZZX,vec_ZZX)

NTL_CLOSE_NNS

#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品一区二区影视| 欧美精品色一区二区三区| 99免费精品在线| 91精品国产全国免费观看| 国产精品乱码妇女bbbb| 日韩激情av在线| 91视频在线观看| 日本一区二区三区视频视频| 日韩电影一区二区三区| 在线免费观看日本一区| 国产精品高清亚洲| 国产老女人精品毛片久久| 欧美喷水一区二区| 亚洲综合视频网| 91麻豆精品在线观看| 中文字幕欧美激情| 国产福利精品导航| 久久综合九色欧美综合狠狠| 免费人成精品欧美精品| 欧美日韩一区二区在线观看视频| 亚洲视频一二区| 床上的激情91.| 国产无一区二区| 国模一区二区三区白浆| 精品久久一区二区三区| 日本美女一区二区三区视频| 欧美日韩成人在线| 亚洲一区二区三区四区中文字幕| 色婷婷综合激情| 亚洲人成在线观看一区二区| 91色在线porny| 亚洲私人影院在线观看| 在线观看视频一区| 亚洲成在人线免费| 欧美理论片在线| 免费成人美女在线观看.| 宅男在线国产精品| 久久er99精品| 欧美大片在线观看一区二区| 久久99蜜桃精品| 26uuu久久综合| 成人国产免费视频| 亚洲麻豆国产自偷在线| 欧美调教femdomvk| 日本视频在线一区| 精品国产污网站| 国产白丝网站精品污在线入口| 国产清纯美女被跳蛋高潮一区二区久久w| 久久99精品视频| 中文成人av在线| 欧洲日韩一区二区三区| 免费高清在线一区| 欧美激情一区三区| 欧洲视频一区二区| 久久99久国产精品黄毛片色诱| 国产视频一区二区在线观看| 91蜜桃网址入口| 青青青伊人色综合久久| 国产免费观看久久| 欧美视频一区二区三区在线观看| 免费在线欧美视频| 国产精品久久毛片av大全日韩| 色婷婷综合久久久久中文| 日韩黄色免费网站| 国产欧美精品一区aⅴ影院 | 欧美区一区二区三区| 蜜桃精品在线观看| 国产精品天干天干在线综合| 欧美又粗又大又爽| 狠狠色丁香婷综合久久| 中文字幕一区二区三区在线播放| 欧美三级电影网站| 国产91对白在线观看九色| 亚洲国产成人精品视频| 久久久久久综合| 欧美在线|欧美| 国产99久久久久| 日本视频免费一区| 一卡二卡欧美日韩| 久久久久久久国产精品影院| 欧美日韩精品一区二区三区四区| 国产精品资源站在线| 亚洲第一在线综合网站| 国产精品久久久久婷婷| 91成人免费在线视频| 精品制服美女丁香| 亚洲成人激情自拍| 一区二区三区中文字幕电影| 久久久精品免费观看| 日韩亚洲欧美一区二区三区| 色偷偷久久一区二区三区| 高清久久久久久| 国内一区二区视频| 蜜桃视频免费观看一区| 亚洲超碰精品一区二区| 亚洲精品午夜久久久| 久久男人中文字幕资源站| 欧美久久久久久久久中文字幕| 99久久久久免费精品国产| 国产一区二区三区国产| 久久精品久久久精品美女| 日韩中文字幕亚洲一区二区va在线| 亚洲人成伊人成综合网小说| 国产精品美日韩| 日本一区二区视频在线观看| 久久人人97超碰com| 日韩欧美电影一二三| 337p亚洲精品色噜噜噜| 欧美精品久久99| 欧美日韩高清一区| 宅男噜噜噜66一区二区66| 这里只有精品电影| 日韩一区二区三区视频| 日韩欧美国产午夜精品| 91精品国产91综合久久蜜臀| 欧美日韩三级视频| 欧美主播一区二区三区美女| 精品久久人人做人人爽| 久久伊99综合婷婷久久伊| 欧美成人bangbros| 精品国产免费视频| 亚洲精品一区二区三区精华液| 欧美一区二区视频在线观看2022| 欧美日韩1区2区| 91成人在线精品| 欧美日韩午夜影院| 日韩欧美一级二级| 久久综合九色综合欧美就去吻| 国产网红主播福利一区二区| 国产欧美一区二区三区沐欲| 欧美极品aⅴ影院| 日韩久久一区二区| 亚洲国产精品一区二区www在线 | 调教+趴+乳夹+国产+精品| 日韩影院免费视频| 国产综合一区二区| 成人一区在线观看| 91久久精品网| 欧美一区二区黄| 久久精品欧美一区二区三区麻豆| 亚洲国产精品av| 亚洲国产日韩精品| 精品制服美女久久| 91看片淫黄大片一级在线观看| 欧美午夜精品理论片a级按摩| 日韩欧美黄色影院| 中文字幕色av一区二区三区| 午夜精品一区二区三区三上悠亚| 久久精品国产77777蜜臀| 99视频精品免费视频| 制服丝袜国产精品| 国产精品乱码一区二三区小蝌蚪| 亚洲国产精品综合小说图片区| 久久不见久久见中文字幕免费| 成人精品视频.| 欧美日韩成人综合在线一区二区| 久久久亚洲国产美女国产盗摄| 亚洲免费看黄网站| 国产在线乱码一区二区三区| 色综合久久88色综合天天6| 精品久久久久av影院 | 日本一区二区三级电影在线观看| 亚洲精品日韩一| 狠狠色综合播放一区二区| 91黄色免费网站| 国产拍欧美日韩视频二区| 亚洲一区二区三区四区中文字幕| 国产精品一区二区免费不卡| 欧美日韩在线亚洲一区蜜芽| 国产女人水真多18毛片18精品视频| 亚洲成人免费视频| av一本久道久久综合久久鬼色| 日韩色视频在线观看| 一区二区三区欧美| 风间由美一区二区av101 | 欧美日韩国产一区二区三区地区| 国产亚洲污的网站| 老司机精品视频导航| 欧美日韩一区二区三区不卡| 国产精品毛片大码女人| 国产精一品亚洲二区在线视频| 欧美性色黄大片手机版| 中文字幕中文字幕在线一区 | 精品在线一区二区三区| 欧美精品日韩综合在线| 亚洲国产一区在线观看| 日本久久电影网| 国产精品成人免费精品自在线观看| 国产一区二区三区黄视频 | 91一区一区三区| 国产精品视频免费看| 国产91在线观看丝袜| 国产欧美一区二区精品性色超碰| 国产盗摄精品一区二区三区在线| 日韩一区二区三区精品视频| 天使萌一区二区三区免费观看| 欧美私人免费视频| 亚洲国产视频a| 91精品国产综合久久精品图片| 亚洲午夜久久久久久久久电影院|