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

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

?? bn.h

?? 用VC實(shí)現(xiàn)的一個(gè)RSA加密算法
?? H
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
/* ---> Basic arithmetic <--- *//* b = -a */int mp_neg(mp_int *a, mp_int *b);/* b = |a| */int mp_abs(mp_int *a, mp_int *b);/* compare a to b */int mp_cmp(mp_int *a, mp_int *b);/* compare |a| to |b| */int mp_cmp_mag(mp_int *a, mp_int *b);/* c = a + b */int mp_add(mp_int *a, mp_int *b, mp_int *c);/* c = a - b */int mp_sub(mp_int *a, mp_int *b, mp_int *c);/* c = a * b */int mp_mul(mp_int *a, mp_int *b, mp_int *c);/* b = a*a  */int mp_sqr(mp_int *a, mp_int *b);/* a/b => cb + d == a */int mp_div(mp_int *a, mp_int *b, mp_int *c, mp_int *d);/* c = a mod b, 0 <= c < b  */int mp_mod(mp_int *a, mp_int *b, mp_int *c);/* ---> single digit functions <--- *//* compare against a single digit */int mp_cmp_d(mp_int *a, mp_digit b);/* c = a + b */int mp_add_d(mp_int *a, mp_digit b, mp_int *c);/* c = a - b */int mp_sub_d(mp_int *a, mp_digit b, mp_int *c);/* c = a * b */int mp_mul_d(mp_int *a, mp_digit b, mp_int *c);/* a/b => cb + d == a */int mp_div_d(mp_int *a, mp_digit b, mp_int *c, mp_digit *d);/* a/3 => 3c + d == a */int mp_div_3(mp_int *a, mp_int *c, mp_digit *d);/* c = a**b */int mp_expt_d(mp_int *a, mp_digit b, mp_int *c);/* c = a mod b, 0 <= c < b  */int mp_mod_d(mp_int *a, mp_digit b, mp_digit *c);/* ---> number theory <--- *//* d = a + b (mod c) */int mp_addmod(mp_int *a, mp_int *b, mp_int *c, mp_int *d);/* d = a - b (mod c) */int mp_submod(mp_int *a, mp_int *b, mp_int *c, mp_int *d);/* d = a * b (mod c) */int mp_mulmod(mp_int *a, mp_int *b, mp_int *c, mp_int *d);
/* d = a / b (mod c) */
int mp_divmod(mp_int * a, mp_int * b, mp_int * c, mp_int * d);
/* c = a * a (mod b) */int mp_sqrmod(mp_int *a, mp_int *b, mp_int *c);/* c = 1/a (mod b) */int mp_invmod(mp_int *a, mp_int *b, mp_int *c);/* c = (a, b) */int mp_gcd(mp_int *a, mp_int *b, mp_int *c);/* produces value such that U1*a + U2*b = U3 */int mp_exteuclid(mp_int *a, mp_int *b, mp_int *U1, mp_int *U2, mp_int *U3);/* c = [a, b] or (a*b)/(a, b) */int mp_lcm(mp_int *a, mp_int *b, mp_int *c);/* finds one of the b'th root of a, such that |c|**b <= |a| * * returns error if a < 0 and b is even */int mp_n_root(mp_int *a, mp_digit b, mp_int *c);/* special sqrt algo */int mp_sqrt(mp_int *arg, mp_int *ret);/* is number a square? */int mp_is_square(mp_int *arg, int *ret);/* computes the jacobi c = (a | n) (or Legendre if b is prime)  */int mp_jacobi(mp_int *a, mp_int *n, int *c);/* used to setup the Barrett reduction for a given modulus b */int mp_reduce_setup(mp_int *a, mp_int *b);/* Barrett Reduction, computes a (mod b) with a precomputed value c * * Assumes that 0 < a <= b*b, note if 0 > a > -(b*b) then you can merely * compute the reduction as -1 * mp_reduce(mp_abs(a)) [pseudo code]. */int mp_reduce(mp_int *a, mp_int *b, mp_int *c);/* setups the montgomery reduction */int mp_montgomery_setup(mp_int *a, mp_digit *mp);/* computes a = B**n mod b without division or multiplication useful for * normalizing numbers in a Montgomery system. */int mp_montgomery_calc_normalization(mp_int *a, mp_int *b);/* computes x/R == x (mod N) via Montgomery Reduction */int mp_montgomery_reduce(mp_int *a, mp_int *m, mp_digit mp);/* returns 1 if a is a valid DR modulus */int mp_dr_is_modulus(mp_int *a);/* sets the value of "d" required for mp_dr_reduce */void mp_dr_setup(mp_int *a, mp_digit *d);/* reduces a modulo b using the Diminished Radix method */int mp_dr_reduce(mp_int *a, mp_int *b, mp_digit mp);/* returns true if a can be reduced with mp_reduce_2k */int mp_reduce_is_2k(mp_int *a);/* determines k value for 2k reduction */int mp_reduce_2k_setup(mp_int *a, mp_digit *d);/* reduces a modulo b where b is of the form 2**p - k [0 <= a] */int mp_reduce_2k(mp_int *a, mp_int *n, mp_digit d);/* returns true if a can be reduced with mp_reduce_2k_l */int mp_reduce_is_2k_l(mp_int *a);/* determines k value for 2k reduction */int mp_reduce_2k_setup_l(mp_int *a, mp_int *d);/* reduces a modulo b where b is of the form 2**p - k [0 <= a] */int mp_reduce_2k_l(mp_int *a, mp_int *n, mp_int *d);/* d = a**b (mod c) */int mp_exptmod(mp_int *a, mp_int *b, mp_int *c, mp_int *d);

int mp_exptmod_crt(mp_int * m, mp_int * e, mp_int * p, mp_int * q, mp_int * c);/* ---> Primes <--- *//* number of primes */#ifdef MP_8BIT   #define PRIME_SIZE      31#else   #define PRIME_SIZE      256#endif/* table of first PRIME_SIZE primes */extern const mp_digit ltm_prime_tab[];/* result=1 if a is divisible by one of the first PRIME_SIZE primes */int mp_prime_is_divisible(mp_int *a, int *result);/* performs one Fermat test of "a" using base "b". * Sets result to 0 if composite or 1 if probable prime */int mp_prime_fermat(mp_int *a, mp_int *b, int *result);/* performs one Miller-Rabin test of "a" using base "b". * Sets result to 0 if composite or 1 if probable prime */int mp_prime_miller_rabin(mp_int *a, mp_int *b, int *result);/* This gives [for a given bit size] the number of trials required * such that Miller-Rabin gives a prob of failure lower than 2^-96 */int mp_prime_rabin_miller_trials(int size);/* performs t rounds of Miller-Rabin on "a" using the first * t prime bases.  Also performs an initial sieve of trial * division.  Determines if "a" is prime with probability * of error no more than (1/4)**t. * * Sets result to 1 if probably prime, 0 otherwise */int mp_prime_is_prime(mp_int *a, int t, int *result);/* finds the next prime after the number "a" using "t" trials * of Miller-Rabin. * * bbs_style = 1 means the prime must be congruent to 3 mod 4 */int mp_prime_next_prime(mp_int *a, int t, int bbs_style);/* makes a truly random prime of a given size (bytes), * call with bbs = 1 if you want it to be congruent to 3 mod 4 * * You have to supply a callback which fills in a buffer with random bytes.  "dat" is a parameter you can * have passed to the callback (e.g. a state or something).  This function doesn't use "dat" itself * so it can be NULL * * The prime generated will be larger than 2^(8*size). */#define mp_prime_random(a, t, size, bbs, cb, dat) mp_prime_random_ex(a, t, ((size) * 8) + 1, (bbs==1)?LTM_PRIME_BBS:0, cb, dat)/* makes a truly random prime of a given size (bits), * * Flags are as follows: * *   LTM_PRIME_BBS      - make prime congruent to 3 mod 4 *   LTM_PRIME_SAFE     - make sure (p-1)/2 is prime as well (implies LTM_PRIME_BBS) *   LTM_PRIME_2MSB_OFF - make the 2nd highest bit zero *   LTM_PRIME_2MSB_ON  - make the 2nd highest bit one * * You have to supply a callback which fills in a buffer with random bytes.  "dat" is a parameter you can * have passed to the callback (e.g. a state or something).  This function doesn't use "dat" itself * so it can be NULL * */int mp_prime_random_ex(mp_int *a, int t, int size, int flags, ltm_prime_callback cb, void *dat);

int mp_generate_strong_prime_r(mp_int *r, int rsbits, ltm_prime_callback cb);
int mp_generate_strong_prime_p(mp_int *ret, int bits, ltm_prime_callback cb);
/* ---> radix conversion <--- */int mp_count_bits(mp_int *a);
int mp_is_bit_set(mp_int * a, int b);int mp_unsigned_bin_size(mp_int *a);int mp_read_unsigned_bin(mp_int *a, const unsigned char *b, int c);int mp_to_unsigned_bin(mp_int *a, unsigned char *b);int mp_to_unsigned_bin_n (mp_int * a, unsigned char *b, unsigned long *outlen);int mp_signed_bin_size(mp_int *a);int mp_read_signed_bin(mp_int *a, const unsigned char *b, int c);int mp_to_signed_bin(mp_int *a,  unsigned char *b);int mp_to_signed_bin_n (mp_int * a, unsigned char *b, unsigned long *outlen);int mp_read_radix(mp_int *a, const char *str, int radix);int mp_toradix(mp_int *a, char *str, int radix);int mp_toradix_n(mp_int * a, char *str, int radix, int maxlen);int mp_radix_size(mp_int *a, int radix, int *size);int mp_fread(mp_int *a, int radix, FILE *stream);int mp_fwrite(mp_int *a, int radix, FILE *stream);#define mp_read_raw(mp, str, len) mp_read_signed_bin((mp), (str), (len))#define mp_raw_size(mp)           mp_signed_bin_size(mp)#define mp_toraw(mp, str)         mp_to_signed_bin((mp), (str))#define mp_read_mag(mp, str, len) mp_read_unsigned_bin((mp), (str), (len))#define mp_mag_size(mp)           mp_unsigned_bin_size(mp)#define mp_tomag(mp, str)         mp_to_unsigned_bin((mp), (str))#define mp_tobinary(M, S)  mp_toradix((M), (S), 2)#define mp_tooctal(M, S)   mp_toradix((M), (S), 8)#define mp_todecimal(M, S) mp_toradix((M), (S), 10)#define mp_tohex(M, S)     mp_toradix((M), (S), 16)/* lowlevel functions, do not call! */int s_mp_add(mp_int *a, mp_int *b, mp_int *c);int s_mp_sub(mp_int *a, mp_int *b, mp_int *c);#define s_mp_mul(a, b, c) s_mp_mul_digs(a, b, c, (a)->used + (b)->used + 1)int fast_s_mp_mul_digs(mp_int *a, mp_int *b, mp_int *c, int digs);int s_mp_mul_digs(mp_int *a, mp_int *b, mp_int *c, int digs);int fast_s_mp_mul_high_digs(mp_int *a, mp_int *b, mp_int *c, int digs);int s_mp_mul_high_digs(mp_int *a, mp_int *b, mp_int *c, int digs);int fast_s_mp_sqr(mp_int *a, mp_int *b);int s_mp_sqr(mp_int *a, mp_int *b);int mp_karatsuba_mul(mp_int *a, mp_int *b, mp_int *c);int mp_toom_mul(mp_int *a, mp_int *b, mp_int *c);int mp_karatsuba_sqr(mp_int *a, mp_int *b);int mp_toom_sqr(mp_int *a, mp_int *b);int fast_mp_invmod(mp_int *a, mp_int *b, mp_int *c);int mp_invmod_slow (mp_int * a, mp_int * b, mp_int * c);int fast_mp_montgomery_reduce(mp_int *a, mp_int *m, mp_digit mp);int mp_exptmod_fast(mp_int *G, mp_int *X, mp_int *P, mp_int *Y, int mode);int s_mp_exptmod (mp_int * G, mp_int * X, mp_int * P, mp_int * Y, int mode);void bn_reverse(unsigned char *s, int len);void mp_int_struct_dump(char *pref, mp_int *b);void mp_int_word_dump(mp_int *b, int max);void dump_mp_int_to_char (mp_int * b, int max, char * c);
extern const char *mp_s_rmap;#ifdef __cplusplus   }#endif#endif

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产日韩欧美制服另类| 亚洲自拍偷拍麻豆| 欧美伊人久久久久久午夜久久久久| 日韩中文字幕1| 国产精品久久精品日日| 日韩女优av电影| 欧美亚洲国产一区二区三区va | 亚洲欧洲色图综合| 欧美一区二区在线播放| 99久久99久久免费精品蜜臀| 久久国产精品72免费观看| 亚洲小说欧美激情另类| 日本一区二区三区国色天香| 日韩欧美在线网站| 欧美日韩一区二区三区免费看| 波多野结衣亚洲| 国产精品资源在线看| 日韩精品1区2区3区| 依依成人综合视频| 亚洲欧洲在线观看av| 久久久久久夜精品精品免费| 91精品国产综合久久久久久久| 色婷婷国产精品| 99精品热视频| 99国产精品视频免费观看| 岛国精品一区二区| 国产自产2019最新不卡| 美女视频网站黄色亚洲| 免费看欧美美女黄的网站| 调教+趴+乳夹+国产+精品| 亚洲韩国一区二区三区| 亚洲黄色片在线观看| ...xxx性欧美| 亚洲日本va午夜在线影院| 中文字幕一区二区三区蜜月| 国产日韩综合av| 欧美激情综合五月色丁香 | 一区二区三区欧美激情| 一区精品在线播放| 一区二区三区中文字幕精品精品| 国产精品成人免费在线| 国产精品国产精品国产专区不片| 亚洲国产精品ⅴa在线观看| 国产蜜臀av在线一区二区三区| 国产婷婷一区二区| 国产精品女同互慰在线看 | 精油按摩中文字幕久久| 久久狠狠亚洲综合| 国产一区二区三区美女| 国产成人99久久亚洲综合精品| 精品综合久久久久久8888| 韩国女主播成人在线| 国产激情一区二区三区| 国产91对白在线观看九色| 91在线观看成人| 欧美天堂一区二区三区| 欧美人动与zoxxxx乱| 日韩欧美国产电影| 国产欧美视频一区二区三区| 亚洲视频在线观看三级| 午夜不卡在线视频| 精品影院一区二区久久久| 成人一级片网址| 欧美性感一区二区三区| 精品久久五月天| 国产精品伦一区二区三级视频| 一区二区三区在线看| 毛片av中文字幕一区二区| 丁香婷婷综合网| 欧美这里有精品| 欧美电影免费观看完整版| 国产精品午夜久久| 亚洲午夜免费电影| 国产一区二区精品在线观看| 91色porny| 精品国产免费人成在线观看| 最新国产の精品合集bt伙计| 蜜桃在线一区二区三区| 91影视在线播放| 精品久久久久久久人人人人传媒| 最新国产成人在线观看| 麻豆国产精品官网| 91丨九色丨国产丨porny| 日韩三级在线观看| 亚洲免费电影在线| 韩国女主播一区二区三区| 日本高清不卡视频| 久久久久久电影| 婷婷久久综合九色国产成人 | 在线成人小视频| 国产精品入口麻豆原神| 午夜精品一区二区三区电影天堂| 国产宾馆实践打屁股91| 欧美片网站yy| 综合久久一区二区三区| 国产呦萝稀缺另类资源| 欧美精品久久99| 亚洲三级视频在线观看| 国产精品99久久久久久久女警| 欧美日韩一区二区三区在线看| 国产精品久久久久久久第一福利| 日韩av成人高清| 欧美午夜片在线观看| 国产精品伦理在线| 国产美女娇喘av呻吟久久| 欧美日韩一区成人| 亚洲精品国产第一综合99久久 | 91精品欧美福利在线观看 | 韩国精品久久久| 欧美日本国产视频| 亚洲男人电影天堂| 粉嫩一区二区三区性色av| 欧美一区二区精品久久911| 亚洲激情图片小说视频| 成人sese在线| 亚洲国产成人午夜在线一区| 国产一区二区在线免费观看| 精品国产亚洲一区二区三区在线观看| 亚洲成人一区在线| 日本精品一区二区三区高清| 国产精品嫩草久久久久| 成人综合婷婷国产精品久久蜜臀| 欧美v国产在线一区二区三区| 首页亚洲欧美制服丝腿| 欧美日韩国产高清一区二区三区 | 国产欧美一区二区三区在线看蜜臀| 奇米888四色在线精品| 欧美日韩国产一区| 亚洲成国产人片在线观看| 欧美主播一区二区三区美女| 亚洲欧美电影一区二区| 91老师国产黑色丝袜在线| 1000部国产精品成人观看| 99re热视频精品| 亚洲欧美国产高清| 日本韩国欧美一区| 亚洲一区二区四区蜜桃| 欧美三级电影网| 五月婷婷综合激情| 欧美绝品在线观看成人午夜影视| 天涯成人国产亚洲精品一区av| 91.麻豆视频| 免费观看一级特黄欧美大片| xf在线a精品一区二区视频网站| 国产精品88av| 国产午夜精品一区二区三区四区| 粉嫩一区二区三区在线看| 中文字幕一区二区三区蜜月 | 精品亚洲成a人在线观看| 精品国产免费人成电影在线观看四季| 精品一区二区三区蜜桃| 日本一区二区三区在线不卡 | 久久久美女毛片| 成人ar影院免费观看视频| 亚洲三级在线免费观看| 欧美疯狂性受xxxxx喷水图片| 久久99国产精品久久99| 中文字幕的久久| 在线亚洲免费视频| 石原莉奈一区二区三区在线观看| 日韩写真欧美这视频| 国产ts人妖一区二区| 亚洲精品国产精华液| 日韩三级视频在线看| 波多野结衣的一区二区三区| 亚洲福利一区二区| 久久网站最新地址| 色又黄又爽网站www久久| 水野朝阳av一区二区三区| 久久在线观看免费| 色综合久久久久综合| 奇米色一区二区| 中文字幕视频一区| 91精品国产一区二区三区| 国产999精品久久| 亚洲va在线va天堂| 国产欧美日韩三区| 欧美日韩国产一二三| 国产成a人亚洲精| 日本成人在线视频网站| 国产精品美女久久久久久久久| 欧美日韩国产免费| 成人免费视频免费观看| 天天做天天摸天天爽国产一区| 国产精品情趣视频| 欧美mv日韩mv国产网站| 91色.com| 国产精品亚洲人在线观看| 亚洲成a人v欧美综合天堂下载| 久久精品日韩一区二区三区| 欧美日韩你懂得| 91网站最新网址| 国产成人综合在线| 日韩黄色免费电影| 中文字幕佐山爱一区二区免费| 日韩欧美一区二区三区在线| 色婷婷综合久久久中文一区二区| 国产在线精品一区二区夜色 | 国产在线精品免费| 婷婷丁香激情综合|