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

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

?? mpi.c

?? 最新版本的加密解密算法庫
?? C
?? 第 1 頁 / 共 5 頁
字號:
  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;}/* End: bn_mp_and.c *//* Start: 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@iahu.ca, http://math.libtomcrypt.org */#include <ltc_tommath.h>/* 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;  }}/* End: bn_mp_clamp.c *//* Start: bn_mp_clear.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@iahu.ca, http://math.libtomcrypt.org */#include <ltc_tommath.h>/* clear one (frees)  */voidmp_clear (mp_int * a){  /* only do anything if a hasn't been freed previously */  if (a->dp != NULL) {    /* first zero the digits */    memset (a->dp, 0, sizeof (mp_digit) * a->used);    /* free ram */    XFREE(a->dp);    /* reset members to make debugging easier */    a->dp    = NULL;    a->alloc = a->used = 0;    a->sign  = MP_ZPOS;  }}/* End: bn_mp_clear.c *//* Start: bn_mp_clear_multi.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@iahu.ca, http://math.libtomcrypt.org */#include <ltc_tommath.h>#include <stdarg.h>void mp_clear_multi(mp_int *mp, ...) {    mp_int* next_mp = mp;    va_list args;    va_start(args, mp);    while (next_mp != NULL) {        mp_clear(next_mp);        next_mp = va_arg(args, mp_int*);    }    va_end(args);}/* End: bn_mp_clear_multi.c *//* Start: bn_mp_cmp.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@iahu.ca, http://math.libtomcrypt.org */#include <ltc_tommath.h>/* compare two ints (signed)*/intmp_cmp (mp_int * a, mp_int * b){  /* compare based on sign */  if (a->sign != b->sign) {     if (a->sign == MP_NEG) {        return MP_LT;     } else {        return MP_GT;     }  }    /* compare digits */  if (a->sign == MP_NEG) {     /* if negative compare opposite direction */     return mp_cmp_mag(b, a);  } else {     return mp_cmp_mag(a, b);  }}/* End: bn_mp_cmp.c *//* Start: bn_mp_cmp_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@iahu.ca, http://math.libtomcrypt.org */#include <ltc_tommath.h>/* compare a digit */int mp_cmp_d(mp_int * a, mp_digit b){  /* compare based on sign */  if (a->sign == MP_NEG) {    return MP_LT;  }  /* compare based on magnitude */  if (a->used > 1) {    return MP_GT;  }  /* compare the only digit of a to b */  if (a->dp[0] > b) {    return MP_GT;  } else if (a->dp[0] < b) {    return MP_LT;  } else {    return MP_EQ;  }}/* End: bn_mp_cmp_d.c *//* Start: bn_mp_cmp_mag.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@iahu.ca, http://math.libtomcrypt.org */#include <ltc_tommath.h>/* compare maginitude of two ints (unsigned) */int mp_cmp_mag (mp_int * a, mp_int * b){  int     n;  mp_digit *tmpa, *tmpb;  /* compare based on # of non-zero digits */  if (a->used > b->used) {    return MP_GT;  }    if (a->used < b->used) {    return MP_LT;  }  /* alias for a */  tmpa = a->dp + (a->used - 1);  /* alias for b */  tmpb = b->dp + (a->used - 1);  /* compare based on digits  */  for (n = 0; n < a->used; ++n, --tmpa, --tmpb) {    if (*tmpa > *tmpb) {      return MP_GT;    }    if (*tmpa < *tmpb) {      return MP_LT;    }  }  return MP_EQ;}/* End: bn_mp_cmp_mag.c *//* Start: bn_mp_cnt_lsb.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@iahu.ca, http://math.libtomcrypt.org */#include <ltc_tommath.h>static const int lnz[16] = {    4, 0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, 0, 1, 0};/* Counts the number of lsbs which are zero before the first zero bit */int mp_cnt_lsb(mp_int *a){   int x;   mp_digit q, qq;   /* easy out */   if (mp_iszero(a) == 1) {      return 0;   }   /* scan lower digits until non-zero */   for (x = 0; x < a->used && a->dp[x] == 0; x++);   q = a->dp[x];   x *= DIGIT_BIT;   /* now scan this digit until a 1 is found */   if ((q & 1) == 0) {      do {         qq  = q & 15;         x  += lnz[qq];         q >>= 4;      } while (qq == 0);   }   return x;}/* End: bn_mp_cnt_lsb.c *//* Start: bn_mp_copy.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@iahu.ca, http://math.libtomcrypt.org */#include <ltc_tommath.h>/* copy, b = a */intmp_copy (mp_int * a, mp_int * b){  int     res, n;  /* if dst == src do nothing */  if (a == b) {    return MP_OKAY;  }  /* grow dest */  if (b->alloc < a->used) {     if ((res = mp_grow (b, a->used)) != MP_OKAY) {        return res;     }  }  /* zero b and copy the parameters over */  {    register mp_digit *tmpa, *tmpb;    /* pointer aliases */    /* source */    tmpa = a->dp;    /* destination */    tmpb = b->dp;    /* copy all the digits */    for (n = 0; n < a->used; n++) {      *tmpb++ = *tmpa++;    }    /* clear high digits */    for (; n < b->used; n++) {      *tmpb++ = 0;    }  }  /* copy used count and sign */  b->used = a->used;  b->sign = a->sign;  return MP_OKAY;}/* End: bn_mp_copy.c *//* Start: bn_mp_count_bits.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@iahu.ca, http://math.libtomcrypt.org */#include <ltc_tommath.h>/* returns the number of bits in an int */intmp_count_bits (mp_int * a){  int     r;  mp_digit q;  /* shortcut */  if (a->used == 0) {    return 0;  }  /* get number of digits and add that */  r = (a->used - 1) * DIGIT_BIT;    /* take the last digit and count the bits in it */  q = a->dp[a->used - 1];  while (q > ((mp_digit) 0)) {    ++r;    q >>= ((mp_digit) 1);  }  return r;}/* End: bn_mp_count_bits.c *//* Start: bn_mp_div.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@iahu.ca, http://math.libtomcrypt.org */#include <ltc_tommath.h>/* integer signed division.  * c*b + d == a [e.g. a/b, c=quotient, d=remainder] * HAC pp.598 Algorithm 14.20 * * Note that the description in HAC is horribly  * incomplete.  For example, it doesn't consider  * the case where digits are removed from 'x' in  * the inner loop.  It also doesn't consider the  * case that y has fewer than three digits, etc.. * * The overall algorithm is as described as  * 14.20 from HAC but fixed to treat these cases.*/int mp_div (mp_int * a, mp_int * b, mp_int * c, mp_int * d){  mp_int  q, x, y, t1, t2;  int     res, n, t, i, norm, neg;  /* is divisor zero ? */  if (mp_iszero (b) == 1) {    return MP_VAL;  }  /* if a < b then q=0, r = a */  if (mp_cmp_mag (a, b) == MP_LT) {    if (d != NULL) {      res = mp_copy (a, d);    } else {      res = MP_OKAY;    }    if (c != NULL) {      mp_zero (c);    }    return res;  }  if ((res = mp_init_size (&q, a->used + 2)) != MP_OKAY) {    return res;  }  q.used = a->used + 2;  if ((res = mp_init (&t1)) != MP_OKAY) {    goto __Q;  }  if ((res = mp_init (&t2)) != MP_OKAY) {    goto __T1;  }  if ((res = mp_init_copy (&x, a)) != MP_OKAY) {    goto __T2;  }  if ((res = mp_init_copy (&y, b)) != MP_OKAY) {    goto __X;  }  /* fix the sign */  neg = (a->sign == b->sign) ? MP_ZPOS : MP_NEG;  x.sign = y.sign = MP_ZPOS;  /* normalize both x and y, ensure that y >= b/2, [b == 2**DIGIT_BIT] */  norm = mp_count_bits(&y) % DIGIT_BIT;  if (norm < (int)(DIGIT_BIT-1)) {     norm = (DIGIT_BIT-1) - norm;     if ((res = mp_mul_2d (&x, norm, &x)) != MP_OKAY) {       goto __Y;     }     if ((res = mp_mul_2d (&y, norm, &y)) != MP_OKAY) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲色图欧洲色图婷婷| 亚洲在线免费播放| 国产精品国产三级国产有无不卡| 中文av一区二区| 亚洲成人av在线电影| 国产高清不卡二三区| 欧美在线观看一二区| 精品国产乱码久久久久久老虎| 国产欧美精品一区aⅴ影院| 一区二区免费看| 国产精品 日产精品 欧美精品| 色婷婷综合激情| 亚洲精品在线三区| 亚洲国产精品一区二区www在线 | 日韩影院免费视频| 国产99一区视频免费| 欧美欧美午夜aⅴ在线观看| 久久久亚洲精品石原莉奈| 亚洲高清不卡在线观看| 日本一不卡视频| 91亚洲精华国产精华精华液| 欧美电影免费观看完整版| 亚洲乱码国产乱码精品精小说 | 欧美精品一二三区| 亚洲欧美自拍偷拍色图| 国产在线国偷精品产拍免费yy| 欧美自拍偷拍午夜视频| 91欧美一区二区| 337p粉嫩大胆噜噜噜噜噜91av| 专区另类欧美日韩| 国产传媒欧美日韩成人| 91精品在线麻豆| 一区二区高清在线| 成人黄页在线观看| 日韩一区二区三区四区 | 国产乱码一区二区三区| 91精品一区二区三区在线观看| 国产精品久久久久久久浪潮网站| 国产一区二区女| 欧美一级片在线| 日韩激情视频在线观看| 在线观看欧美日本| 亚洲精品日产精品乱码不卡| 成人高清免费观看| 国产精品视频在线看| 国产福利91精品| 精品一区二区三区免费视频| 欧美综合一区二区| 国产精品嫩草影院com| 一个色综合网站| 国产精品国模大尺度视频| 一区二区三区四区国产精品| 99热在这里有精品免费| 中文字幕成人av| 国产呦萝稀缺另类资源| 久久综合国产精品| 国产精品白丝jk白祙喷水网站| 欧美tickling网站挠脚心| 韩国视频一区二区| 国产欧美精品一区| 99久久国产综合色|国产精品| 亚洲欧洲另类国产综合| 不卡影院免费观看| 亚洲人精品午夜| 在线免费av一区| 日韩成人av影视| 精品国产乱子伦一区| 亚洲成av人片在线| 一区二区三区鲁丝不卡| 欧美日韩在线不卡| 成人激情校园春色| 亚洲美女免费视频| 欧美日韩国产高清一区二区三区| 视频一区二区欧美| 久久只精品国产| 美腿丝袜亚洲综合| 国产蜜臀97一区二区三区| 色哟哟一区二区| 一区二区视频在线看| 欧美久久久久久久久中文字幕| 乱中年女人伦av一区二区| 国产视频不卡一区| 欧美视频日韩视频在线观看| 日本aⅴ亚洲精品中文乱码| 国产偷国产偷精品高清尤物| 91久久精品一区二区三区| 久久国产视频网| 久久精品视频在线免费观看| 欧美性猛交xxxx乱大交退制版| 激情av综合网| 亚洲欧美电影一区二区| 日韩三级在线免费观看| 色悠悠久久综合| 韩国av一区二区三区在线观看| 亚洲美女视频在线| 久久综合久久综合久久| 欧美高清hd18日本| 国产999精品久久| 视频一区二区三区在线| 亚洲美女视频一区| 久久久久久久综合日本| 久久先锋资源网| 欧美va亚洲va在线观看蝴蝶网| 欧美日韩欧美一区二区| 色爱区综合激月婷婷| 91社区在线播放| 99久久99久久精品国产片果冻 | 91黄色免费观看| 91丨九色丨蝌蚪丨老版| 不卡一区中文字幕| 91在线视频播放地址| 91亚洲精华国产精华精华液| 93久久精品日日躁夜夜躁欧美| 成人av在线一区二区三区| 97国产一区二区| 91福利视频在线| 欧美丝袜自拍制服另类| 欧美日韩国产小视频在线观看| 欧美又粗又大又爽| 日本乱人伦aⅴ精品| 欧美伊人久久大香线蕉综合69| 欧洲视频一区二区| 欧美午夜精品电影| 欧美一级久久久久久久大片| 欧美成人一区二区三区在线观看 | 91福利小视频| 欧美日韩午夜在线视频| 91精品在线观看入口| 久久天堂av综合合色蜜桃网| 国产日韩av一区二区| 日韩美女视频一区二区| 亚洲6080在线| 国产真实乱对白精彩久久| 不卡的av电影| 欧美高清一级片在线| 亚洲精品一线二线三线无人区| 久久精子c满五个校花| 亚洲国产激情av| 亚洲一区影音先锋| 久久99这里只有精品| 成人av电影在线网| 欧美人妖巨大在线| 久久久久久久久久久99999| 亚洲视频免费观看| 麻豆视频一区二区| 91尤物视频在线观看| 欧美老女人第四色| 国产欧美日韩不卡免费| 亚洲电影视频在线| 高清日韩电视剧大全免费| 色综合久久综合网欧美综合网 | 国产一区二区三区在线看麻豆| 波多野结衣亚洲一区| 欧美女孩性生活视频| 亚洲第一激情av| 久久成人免费网| 在线视频你懂得一区二区三区| 日韩欧美亚洲一区二区| 国产精品久久久久久久浪潮网站| 香蕉影视欧美成人| 成人动漫一区二区| 日韩视频一区二区| 亚洲欧美日韩精品久久久久| 精品一区二区在线观看| 91久久精品网| 中文一区二区在线观看| 久久av中文字幕片| 精品视频在线看| 日韩一区有码在线| 国产成人免费9x9x人网站视频| 欧美巨大另类极品videosbest| 中文在线资源观看网站视频免费不卡| 午夜欧美在线一二页| 一本到高清视频免费精品| 国产蜜臀97一区二区三区| 久久福利资源站| 91精品国产综合久久久久久久| 亚洲欧美一区二区不卡| 成人免费毛片a| 久久麻豆一区二区| 麻豆精品国产91久久久久久| 欧美在线观看你懂的| 亚洲美女在线一区| 成人免费毛片app| 欧美国产一区二区在线观看 | 国产精品视频看| 国产综合久久久久久久久久久久| 制服.丝袜.亚洲.中文.综合| 一区二区三区四区乱视频| 91视频91自| 亚洲猫色日本管| 色域天天综合网| 亚洲综合一二三区| 在线欧美一区二区| 艳妇臀荡乳欲伦亚洲一区| 欧美中文字幕一二三区视频| 亚洲乱码精品一二三四区日韩在线| av一区二区三区黑人| 1000部国产精品成人观看| 91丨九色porny丨蝌蚪|