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

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

?? mpi.c

?? 該壓縮包中包括 tom的加密函數(shù)庫及pdf說明 ,以及Rinick s ECC:橢圓曲線非對稱加密密鑰生成器
?? C
?? 第 1 頁 / 共 5 頁
字號:
      /* make next carry */      _W = _W >> ((mp_word)DIGIT_BIT);  }    /* store final carry */  W[ix] = (mp_digit)(_W & MP_MASK);  /* setup dest */  olduse  = c->used;  c->used = pa;  {    register mp_digit *tmpc;    tmpc = c->dp + digs;    for (ix = digs; ix <= pa; ix++) {      /* now extract the previous digit [below the carry] */      *tmpc++ = W[ix];    }    /* clear unused digits [that existed in the old copy of c] */    for (; ix < olduse; ix++) {      *tmpc++ = 0;    }  }  mp_clamp (c);  return MP_OKAY;}#endif/* End: bn_fast_s_mp_mul_high_digs.c *//* Start: bn_fast_s_mp_sqr.c */#include <ltc_tommath.h>#ifdef BN_FAST_S_MP_SQR_C/* LibTomMath, multiple-precision integer library -- Tom St Denis * * LibTomMath is a library that provides multiple-precision * integer arithmetic as well as number theoretic functionality. * * The library was designed directly after the MPI library by * Michael Fromberger but has been written from scratch with * additional optimizations in place. * * The library is free for all purposes without any express * guarantee it works. * * Tom St Denis, tomstdenis@gmail.com, http://math.libtomcrypt.org *//* the jist of squaring... * you do like mult except the offset of the tmpx [one that  * starts closer to zero] can't equal the offset of tmpy.   * So basically you set up iy like before then you min it with * (ty-tx) so that it never happens.  You double all those  * you add in the inner loopAfter that loop you do the squares and add them in.*/int fast_s_mp_sqr (mp_int * a, mp_int * b){  int       olduse, res, pa, ix, iz;  mp_digit   W[MP_WARRAY], *tmpx;  mp_word   W1;  /* grow the destination as required */  pa = a->used + a->used;  if (b->alloc < pa) {    if ((res = mp_grow (b, pa)) != MP_OKAY) {      return res;    }  }  /* number of output digits to produce */  W1 = 0;  for (ix = 0; ix < pa; ix++) {       int      tx, ty, iy;      mp_word  _W;      mp_digit *tmpy;      /* clear counter */      _W = 0;      /* get offsets into the two bignums */      ty = MIN(a->used-1, ix);      tx = ix - ty;      /* setup temp aliases */      tmpx = a->dp + tx;      tmpy = a->dp + ty;      /* this is the number of times the loop will iterrate, essentially         while (tx++ < a->used && ty-- >= 0) { ... }       */      iy = MIN(a->used-tx, ty+1);      /* now for squaring tx can never equal ty        * we halve the distance since they approach at a rate of 2x       * and we have to round because odd cases need to be executed       */      iy = MIN(iy, (ty-tx+1)>>1);      /* execute loop */      for (iz = 0; iz < iy; iz++) {         _W += ((mp_word)*tmpx++)*((mp_word)*tmpy--);      }      /* double the inner product and add carry */      _W = _W + _W + W1;      /* even columns have the square term in them */      if ((ix&1) == 0) {         _W += ((mp_word)a->dp[ix>>1])*((mp_word)a->dp[ix>>1]);      }      /* store it */      W[ix] = (mp_digit)(_W & MP_MASK);      /* make next carry */      W1 = _W >> ((mp_word)DIGIT_BIT);  }  /* setup dest */  olduse  = b->used;  b->used = a->used+a->used;  {    mp_digit *tmpb;    tmpb = b->dp;    for (ix = 0; ix < pa; ix++) {      *tmpb++ = W[ix] & MP_MASK;    }    /* clear unused digits [that existed in the old copy of c] */    for (; ix < olduse; ix++) {      *tmpb++ = 0;    }  }  mp_clamp (b);  return MP_OKAY;}#endif/* End: bn_fast_s_mp_sqr.c *//* Start: bn_mp_2expt.c */#include <ltc_tommath.h>#ifdef BN_MP_2EXPT_C/* LibTomMath, multiple-precision integer library -- Tom St Denis * * LibTomMath is a library that provides multiple-precision * integer arithmetic as well as number theoretic functionality. * * The library was designed directly after the MPI library by * Michael Fromberger but has been written from scratch with * additional optimizations in place. * * The library is free for all purposes without any express * guarantee it works. * * Tom St Denis, tomstdenis@gmail.com, http://math.libtomcrypt.org *//* computes a = 2**b  * * Simple algorithm which zeroes the int, grows it then just sets one bit * as required. */intmp_2expt (mp_int * a, int b){  int     res;  /* zero a as per default */  mp_zero (a);  /* grow a to accomodate the single bit */  if ((res = mp_grow (a, b / DIGIT_BIT + 1)) != MP_OKAY) {    return res;  }  /* set the used count of where the bit will go */  a->used = b / DIGIT_BIT + 1;  /* put the single bit in its place */  a->dp[b / DIGIT_BIT] = ((mp_digit)1) << (b % DIGIT_BIT);  return MP_OKAY;}#endif/* End: bn_mp_2expt.c *//* Start: bn_mp_abs.c */#include <ltc_tommath.h>#ifdef BN_MP_ABS_C/* LibTomMath, multiple-precision integer library -- Tom St Denis * * LibTomMath is a library that provides multiple-precision * integer arithmetic as well as number theoretic functionality. * * The library was designed directly after the MPI library by * Michael Fromberger but has been written from scratch with * additional optimizations in place. * * The library is free for all purposes without any express * guarantee it works. * * Tom St Denis, tomstdenis@gmail.com, http://math.libtomcrypt.org *//* b = |a|  * * Simple function copies the input and fixes the sign to positive */intmp_abs (mp_int * a, mp_int * b){  int     res;  /* copy a to b */  if (a != b) {     if ((res = mp_copy (a, b)) != MP_OKAY) {       return res;     }  }  /* force the sign of b to positive */  b->sign = MP_ZPOS;  return MP_OKAY;}#endif/* End: bn_mp_abs.c *//* Start: bn_mp_add.c */#include <ltc_tommath.h>#ifdef BN_MP_ADD_C/* LibTomMath, multiple-precision integer library -- Tom St Denis * * LibTomMath is a library that provides multiple-precision * integer arithmetic as well as number theoretic functionality. * * The library was designed directly after the MPI library by * Michael Fromberger but has been written from scratch with * additional optimizations in place. * * The library is free for all purposes without any express * guarantee it works. * * Tom St Denis, tomstdenis@gmail.com, http://math.libtomcrypt.org *//* high level addition (handles signs) */int mp_add (mp_int * a, mp_int * b, mp_int * c){  int     sa, sb, res;  /* get sign of both inputs */  sa = a->sign;  sb = b->sign;  /* handle two cases, not four */  if (sa == sb) {    /* both positive or both negative */    /* add their magnitudes, copy the sign */    c->sign = sa;    res = s_mp_add (a, b, c);  } else {    /* one positive, the other negative */    /* subtract the one with the greater magnitude from */    /* the one of the lesser magnitude.  The result gets */    /* the sign of the one with the greater magnitude. */    if (mp_cmp_mag (a, b) == MP_LT) {      c->sign = sb;      res = s_mp_sub (b, a, c);    } else {      c->sign = sa;      res = s_mp_sub (a, b, c);    }  }  return res;}#endif/* End: bn_mp_add.c *//* Start: bn_mp_add_d.c */#include <ltc_tommath.h>#ifdef BN_MP_ADD_D_C/* LibTomMath, multiple-precision integer library -- Tom St Denis * * LibTomMath is a library that provides multiple-precision * integer arithmetic as well as number theoretic functionality. * * The library was designed directly after the MPI library by * Michael Fromberger but has been written from scratch with * additional optimizations in place. * * The library is free for all purposes without any express * guarantee it works. * * Tom St Denis, tomstdenis@gmail.com, http://math.libtomcrypt.org *//* single digit addition */intmp_add_d (mp_int * a, mp_digit b, mp_int * c){  int     res, ix, oldused;  mp_digit *tmpa, *tmpc, mu;  /* grow c as required */  if (c->alloc < a->used + 1) {     if ((res = mp_grow(c, a->used + 1)) != MP_OKAY) {        return res;     }  }  /* if a is negative and |a| >= b, call c = |a| - b */  if (a->sign == MP_NEG && (a->used > 1 || a->dp[0] >= b)) {     /* temporarily fix sign of a */     a->sign = MP_ZPOS;     /* c = |a| - b */     res = mp_sub_d(a, b, c);     /* fix sign  */     a->sign = c->sign = MP_NEG;     return res;  }  /* old number of used digits in c */  oldused = c->used;  /* sign always positive */  c->sign = MP_ZPOS;  /* source alias */  tmpa    = a->dp;  /* destination alias */  tmpc    = c->dp;  /* if a is positive */  if (a->sign == MP_ZPOS) {     /* add digit, after this we're propagating      * the carry.      */     *tmpc   = *tmpa++ + b;     mu      = *tmpc >> DIGIT_BIT;     *tmpc++ &= MP_MASK;     /* now handle rest of the digits */     for (ix = 1; ix < a->used; ix++) {        *tmpc   = *tmpa++ + mu;        mu      = *tmpc >> DIGIT_BIT;        *tmpc++ &= MP_MASK;     }     /* set final carry */     ix++;     *tmpc++  = mu;     /* setup size */     c->used = a->used + 1;  } else {     /* a was negative and |a| < b */     c->used  = 1;     /* the result is a single digit */     if (a->used == 1) {        *tmpc++  =  b - a->dp[0];     } else {        *tmpc++  =  b;     }     /* setup count so the clearing of oldused      * can fall through correctly      */     ix       = 1;  }  /* now zero to oldused */  while (ix++ < oldused) {     *tmpc++ = 0;  }  mp_clamp(c);  return MP_OKAY;}#endif/* End: bn_mp_add_d.c *//* Start: bn_mp_addmod.c */#include <ltc_tommath.h>#ifdef BN_MP_ADDMOD_C/* LibTomMath, multiple-precision integer library -- Tom St Denis * * LibTomMath is a library that provides multiple-precision * integer arithmetic as well as number theoretic functionality. * * The library was designed directly after the MPI library by * Michael Fromberger but has been written from scratch with * additional optimizations in place. * * The library is free for all purposes without any express * guarantee it works. * * Tom St Denis, tomstdenis@gmail.com, http://math.libtomcrypt.org *//* d = a + b (mod c) */intmp_addmod (mp_int * a, mp_int * b, mp_int * c, mp_int * d){  int     res;  mp_int  t;  if ((res = mp_init (&t)) != MP_OKAY) {    return res;  }  if ((res = mp_add (a, b, &t)) != MP_OKAY) {    mp_clear (&t);    return res;  }  res = mp_mod (&t, c, d);  mp_clear (&t);  return res;}#endif/* End: bn_mp_addmod.c *//* Start: bn_mp_and.c */#include <ltc_tommath.h>#ifdef BN_MP_AND_C/* LibTomMath, multiple-precision integer library -- Tom St Denis * * LibTomMath is a library that provides multiple-precision * integer arithmetic as well as number theoretic functionality. * * The library was designed directly after the MPI library by * Michael Fromberger but has been written from scratch with * additional optimizations in place. * * The library is free for all purposes without any express * guarantee it works. * * Tom St Denis, tomstdenis@gmail.com, http://math.libtomcrypt.org *//* AND two ints together */intmp_and (mp_int * a, mp_int * b, mp_int * c){  int     res, ix, px;  mp_int  t, *x;  if (a->used > b->used) {    if ((res = mp_init_copy (&t, a)) != MP_OKAY) {      return res;    }    px = b->used;    x = b;  } else {    if ((res = mp_init_copy (&t, b)) != MP_OKAY) {      return res;    }    px = a->used;    x = a;  }  for (ix = 0; ix < px; ix++) {    t.dp[ix] &= x->dp[ix];  }  /* zero digits above the last from the smallest mp_int */  for (; ix < t.used; ix++) {    t.dp[ix] = 0;  }  mp_clamp (&t);  mp_exch (c, &t);  mp_clear (&t);  return MP_OKAY;}#endif/* End: bn_mp_and.c *//* Start: bn_mp_clamp.c */#include <ltc_tommath.h>#ifdef BN_MP_CLAMP_C/* LibTomMath, multiple-precision integer library -- Tom St Denis * * LibTomMath is a library that provides multiple-precision * integer arithmetic as well as number theoretic functionality. * * The library was designed directly after the MPI library by * Michael Fromberger but has been written from scratch with * additional optimizations in place. * * The library is free for all purposes without any express * guarantee it works. * * Tom St Denis, tomstdenis@gmail.com, http://math.libtomcrypt.org *//* trim unused digits  * * This is used to ensure that leading zero digits are * trimed and the leading "used" digit will be non-zero * Typically very fast.  Also fixes the sign if there * are no more leading digits */voidmp_clamp (mp_int * a){  /* decrease used while the most significant digit is   * zero.   */  while (a->used > 0 && a->dp[a->used - 1] == 0) {    --(a->used);  }  /* reset the sign flag if used == 0 */  if (a->used == 0) {    a->sign = MP_ZPOS;  }}#endif/* End: bn_mp_clamp.c *//* Start: bn_mp_clear.c */#include <ltc_tommath.h>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产午夜精品理论片a级大结局| 亚洲一区二区在线免费观看视频| 亚洲三级视频在线观看| 亚洲电影在线免费观看| 丁香六月综合激情| 日韩视频一区二区三区在线播放| 亚洲国产精品ⅴa在线观看| 日韩高清一级片| 91美女片黄在线| 国产日韩欧美a| 看电影不卡的网站| 在线综合视频播放| 一卡二卡欧美日韩| 99re热这里只有精品视频| 久久久国际精品| 另类的小说在线视频另类成人小视频在线| 91原创在线视频| 国产精品污www在线观看| 久久精品国产99国产| 91精品欧美久久久久久动漫| 亚洲精品一卡二卡| 91天堂素人约啪| 国产精品久久毛片a| 国产成人av自拍| 久久亚洲精精品中文字幕早川悠里| 五月激情六月综合| 欧美亚洲精品一区| 一区二区高清免费观看影视大全| 不卡av电影在线播放| 国产欧美日韩三级| 丁香五精品蜜臀久久久久99网站| 精品粉嫩超白一线天av| 老司机精品视频在线| 欧美一区二区在线观看| 五月婷婷激情综合| 欧美日韩精品一区二区在线播放| 亚洲精品成人少妇| 欧美三级三级三级| 午夜精品福利视频网站| 91精品国产一区二区三区香蕉| 亚洲一区二区美女| 91精品国产欧美日韩| 免费成人在线观看| 久久综合久久综合久久| 国产成人精品综合在线观看| 日本一区二区成人在线| 91色视频在线| 亚洲不卡一区二区三区| 日韩视频一区在线观看| 国产美女娇喘av呻吟久久 | 国产精品自拍一区| 久久久久久久久久久久久夜| 成人av影视在线观看| 最新国产の精品合集bt伙计| 91丨九色丨黑人外教| 亚洲国产精品一区二区久久 | 国产麻豆精品theporn| 国产色婷婷亚洲99精品小说| 99精品热视频| 日韩福利视频导航| 久久久夜色精品亚洲| 91免费看片在线观看| 丝袜诱惑亚洲看片| 久久久午夜精品理论片中文字幕| 99久久99久久精品免费观看| 亚洲高清视频的网址| 久久亚洲精精品中文字幕早川悠里| 成人永久免费视频| 亚洲国产成人av好男人在线观看| 日韩欧美国产午夜精品| 99国产精品99久久久久久| 天堂成人免费av电影一区| 国产亚洲短视频| 欧美电影在线免费观看| 在线成人午夜影院| 国产一区二区不卡在线| 亚洲精品v日韩精品| 337p粉嫩大胆噜噜噜噜噜91av| 本田岬高潮一区二区三区| 日韩精品欧美精品| 日韩理论在线观看| 亚洲精品一区二区三区四区高清| 91年精品国产| 国产美女精品在线| 视频一区欧美精品| 亚洲人午夜精品天堂一二香蕉| 日韩一区二区三区电影| 日本高清成人免费播放| 国产福利一区二区三区在线视频| 亚洲观看高清完整版在线观看 | 国产在线精品一区在线观看麻豆| 亚洲精品亚洲人成人网| 国产午夜精品福利| 精品国产乱码久久久久久久 | 欧美电影在线免费观看| 99re这里只有精品视频首页| 国产福利一区二区三区视频| 日本三级韩国三级欧美三级| 一区二区三区av电影| 中文av字幕一区| 久久精品一区蜜桃臀影院| 日韩欧美一级在线播放| 91精品欧美综合在线观看最新| 在线免费观看一区| 日本高清不卡视频| 99精品视频在线免费观看| 成人性生交大合| 国产福利一区在线观看| 国产河南妇女毛片精品久久久| 蜜臀精品一区二区三区在线观看| 亚洲国产综合色| 亚洲国产欧美日韩另类综合| 亚洲综合偷拍欧美一区色| 亚洲免费电影在线| 一区二区三区影院| 亚洲一区二区三区中文字幕在线| 亚洲天堂网中文字| 亚洲精品免费在线| 亚洲一卡二卡三卡四卡五卡| 一区二区三区成人| 亚洲一区二区欧美| 婷婷综合在线观看| 久久精品国产精品青草| 国产在线麻豆精品观看| 国v精品久久久网| 不卡欧美aaaaa| 一本色道亚洲精品aⅴ| 在线观看国产日韩| 欧美精品第1页| 日韩亚洲国产中文字幕欧美| 欧美电影免费观看高清完整版在线| 欧美一区二区三级| 久久夜色精品国产噜噜av| 日本一区二区三区在线不卡 | 91视频观看免费| 欧美日韩一级片网站| 91精品国产综合久久福利 | 国产精品色噜噜| 亚洲男人天堂一区| 日韩精品一二三| 国产精品一区二区你懂的| eeuss鲁一区二区三区| 欧美做爰猛烈大尺度电影无法无天| 欧美日韩精品一区视频| 日韩美女视频在线| 国产精品白丝在线| 日韩在线一二三区| 成人免费看视频| 欧美精品三级在线观看| 欧美韩国日本综合| 亚洲一区二区三区影院| 国产最新精品精品你懂的| 99久久久久久99| 欧美一区二区网站| 国产精品第四页| 免费久久精品视频| 91小视频在线| 2023国产精品自拍| 亚洲综合清纯丝袜自拍| 国产精品一区二区黑丝| 欧美男生操女生| 中文在线资源观看网站视频免费不卡| 一区二区三区四区五区视频在线观看| 日韩电影在线免费看| 99视频超级精品| 欧美不卡在线视频| 亚洲va欧美va人人爽| 福利一区在线观看| 欧美一区二区国产| 亚洲六月丁香色婷婷综合久久| 国产在线视视频有精品| 欧美怡红院视频| 国产精品久99| 国产一区二区三区四区五区入口| 欧美无人高清视频在线观看| 国产女人水真多18毛片18精品视频| 日韩电影一区二区三区| 日韩精品中文字幕一区二区三区 | 日韩欧美在线一区二区三区| 亚洲美女免费视频| 福利一区二区在线观看| 日韩欧美的一区二区| 亚洲午夜久久久久久久久久久| 成人av在线一区二区三区| 2024国产精品视频| 麻豆91在线播放免费| 9191成人精品久久| 亚洲国产一区二区三区| 色婷婷综合久久久中文字幕| 国产精品乱码一区二区三区软件| 精品制服美女久久| 欧美大黄免费观看| 麻豆成人久久精品二区三区红 | 不卡的av在线播放| 欧美国产日韩亚洲一区| 国产成人在线视频网站| 久久综合99re88久久爱| 国产精品一区二区三区乱码| 久久久影视传媒| 国产69精品久久久久777|