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

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

?? bn_add.c

?? LINUX AU12XX BOOTLADER
?? C
字號:
/* crypto/bn/bn_add.c *//* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (eay@cryptsoft.com). * The implementation was written so as to conform with Netscapes SSL. *  * This library is free for commercial and non-commercial use as long as * the following conditions are aheared to.  The following conditions * apply to all code found in this distribution, be it the RC4, RSA, * lhash, DES, etc., code; not just the SSL code.  The SSL documentation * included with this distribution is covered by the same copyright terms * except that the holder is Tim Hudson (tjh@cryptsoft.com). *  * Copyright remains Eric Young's, and as such any Copyright notices in * the code are not to be removed. * If this package is used in a product, Eric Young should be given attribution * as the author of the parts of the library used. * This can be in the form of a textual message at program startup or * in documentation (online or textual) provided with the package. *  * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software *    must display the following acknowledgement: *    "This product includes cryptographic software written by *     Eric Young (eay@cryptsoft.com)" *    The word 'cryptographic' can be left out if the rouines from the library *    being used are not cryptographic related :-). * 4. If you include any Windows specific code (or a derivative thereof) from  *    the apps directory (application code) you must include an acknowledgement: *    "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" *  * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. *  * The licence and distribution terms for any publically available version or * derivative of this code cannot be changed.  i.e. this code cannot simply be * copied and put under another distribution licence * [including the GNU Public Licence.] */#include <stdio.h>#include "cryptlib.h"#include "bn_lcl.h"#include "workaround.h"/* r can == a or b */int BN_add(BIGNUM * r, const BIGNUM * a, const BIGNUM * b){    const BIGNUM *tmp;    bn_check_top(a);    bn_check_top(b);    /*  a +  b      a+b     *  a + -b      a-b     * -a +  b      b-a     * -a + -b      -(a+b)     */    if (a->neg ^ b->neg) {	/* only one is negative */	if (a->neg) {	    tmp = a;	    a = b;	    b = tmp;	}	/* we are now a - b */	if (BN_ucmp(a, b) < 0) {	    if (!BN_usub(r, b, a))		return (0);	    r->neg = 1;	} else {	    if (!BN_usub(r, a, b))		return (0);	    r->neg = 0;	}	return (1);    }    if (a->neg)			/* both are neg */	r->neg = 1;    else	r->neg = 0;    if (!BN_uadd(r, a, b))	return (0);    return (1);}/* unsigned add of b to a, r must be large enough */int BN_uadd(BIGNUM * r, const BIGNUM * a, const BIGNUM * b){    register int i;    int max, min;    BN_ULONG *ap, *bp, *rp, carry, t1;    const BIGNUM *tmp;    bn_check_top(a);    bn_check_top(b);    if (a->top < b->top) {	tmp = a;	a = b;	b = tmp;    }    max = a->top;    min = b->top;    if (bn_wexpand(r, max + 1) == NULL)	return (0);    r->top = max;    ap = a->d;    bp = b->d;    rp = r->d;    carry = 0;    carry = bn_add_words(rp, ap, bp, min);    rp += min;    ap += min;    bp += min;    i = min;    if (carry) {	while (i < max) {	    i++;	    t1 = *(ap++);	    if ((*(rp++) = (t1 + 1) & BN_MASK2) >= t1) {		carry = 0;		break;	    }	}	if ((i >= max) && carry) {	    *(rp++) = 1;	    r->top++;	}    }    if (rp != ap) {	for (; i < max; i++)	    *(rp++) = *(ap++);    }    /* hss_memcpy(rp,ap,sizeof(*ap)*(max-i)); */    return (1);}/* unsigned subtraction of b from a, a must be larger than b. */int BN_usub(BIGNUM * r, const BIGNUM * a, const BIGNUM * b){    int max, min;    register BN_ULONG t1, t2, *ap, *bp, *rp;    int i, carry;#if defined(IRIX_CC_BUG) && !defined(LINT)    int dummy;#endif    bn_check_top(a);    bn_check_top(b);    if (a->top < b->top) {	/* hmm... should not be happening */	BNerr(BN_F_BN_USUB, BN_R_ARG2_LT_ARG3);	return (0);    }    max = a->top;    min = b->top;    if (bn_wexpand(r, max) == NULL)	return (0);    ap = a->d;    bp = b->d;    rp = r->d;#if 1    carry = 0;    for (i = 0; i < min; i++) {	t1 = *(ap++);	t2 = *(bp++);	if (carry) {	    carry = (t1 <= t2);	    t1 = (t1 - t2 - 1) & BN_MASK2;	} else {	    carry = (t1 < t2);	    t1 = (t1 - t2) & BN_MASK2;	}#if defined(IRIX_CC_BUG) && !defined(LINT)	dummy = t1;#endif	*(rp++) = t1 & BN_MASK2;    }#else    carry = bn_sub_words(rp, ap, bp, min);    ap += min;    bp += min;    rp += min;    i = min;#endif    if (carry) {		/* subtracted */	while (i < max) {	    i++;	    t1 = *(ap++);	    t2 = (t1 - 1) & BN_MASK2;	    *(rp++) = t2;	    if (t1 > t2)		break;	}    }#if 0    hss_memcpy(rp, ap, sizeof(*rp) * (max - i));#else    if (rp != ap) {	for (;;) {	    if (i++ >= max)		break;	    rp[0] = ap[0];	    if (i++ >= max)		break;	    rp[1] = ap[1];	    if (i++ >= max)		break;	    rp[2] = ap[2];	    if (i++ >= max)		break;	    rp[3] = ap[3];	    rp += 4;	    ap += 4;	}    }#endif    r->top = max;    bn_fix_top(r);    return (1);}int BN_sub(BIGNUM * r, const BIGNUM * a, const BIGNUM * b){    int max;    int add = 0, neg = 0;    const BIGNUM *tmp;    bn_check_top(a);    bn_check_top(b);    /*  a -  b      a-b     *  a - -b      a+b     * -a -  b      -(a+b)     * -a - -b      b-a     */    if (a->neg) {	if (b->neg) {	    tmp = a;	    a = b;	    b = tmp;	} else {	    add = 1;	    neg = 1;	}    } else {	if (b->neg) {	    add = 1;	    neg = 0;	}    }    if (add) {	if (!BN_uadd(r, a, b))	    return (0);	r->neg = neg;	return (1);    }    /* We are actually doing a - b :-) */    max = (a->top > b->top) ? a->top : b->top;    if (bn_wexpand(r, max) == NULL)	return (0);    if (BN_ucmp(a, b) < 0) {	if (!BN_usub(r, b, a))	    return (0);	r->neg = 1;    } else {	if (!BN_usub(r, a, b))	    return (0);	r->neg = 0;    }    return (1);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲综合一区二区三区| 国产三级精品三级在线专区| 亚洲国产精品欧美一二99| 91美女片黄在线观看| 亚洲精品国产成人久久av盗摄| 色爱区综合激月婷婷| 日韩精品一区第一页| 欧美mv日韩mv国产网站app| 国产精品一色哟哟哟| 亚洲色图在线视频| 欧美精品tushy高清| 韩国av一区二区三区| 国产精品嫩草影院com| 色综合久久中文字幕综合网| 婷婷六月综合亚洲| 国产亚洲精品7777| 91福利小视频| 九九在线精品视频| 亚洲视频一区二区免费在线观看| 欧美日韩高清一区二区不卡| 麻豆一区二区99久久久久| 中文子幕无线码一区tr| 欧美欧美欧美欧美| 国产精品123| 亚洲综合网站在线观看| 久久理论电影网| 在线看一区二区| 国产成人午夜高潮毛片| 亚洲午夜影视影院在线观看| 精品捆绑美女sm三区| 97国产一区二区| 久久精品72免费观看| 亚洲欧美日韩国产一区二区三区| 欧美二区三区的天堂| 国产成人av影院| 亚洲va欧美va人人爽| 欧美激情一区二区在线| 欧美一区二区在线视频| 99久久99久久免费精品蜜臀| 免费人成在线不卡| 亚洲欧美区自拍先锋| 26uuu色噜噜精品一区二区| 在线观看免费一区| 国产mv日韩mv欧美| 美女视频一区二区三区| 亚洲美女免费在线| 中文字幕一区二区三区在线播放| 日韩欧美国产三级| 欧美调教femdomvk| 国产成人精品午夜视频免费| 麻豆成人综合网| 亚洲成人免费电影| 亚洲女女做受ⅹxx高潮| 欧美极品aⅴ影院| 日韩一区二区精品| 欧美日韩国产影片| 日本韩国视频一区二区| 成人激情图片网| 国产一二精品视频| 精品一区二区三区的国产在线播放 | 欧美网站一区二区| 国产成都精品91一区二区三| 美日韩黄色大片| 亚洲va欧美va国产va天堂影院| 中文字幕精品一区二区三区精品| 日韩亚洲欧美高清| 欧美高清视频在线高清观看mv色露露十八 | 亚洲国产精品一区二区www在线| 精品久久国产字幕高潮| 日韩午夜精品视频| 欧美精品自拍偷拍动漫精品| 精品视频在线视频| 在线视频亚洲一区| 91久久精品网| 91在线高清观看| 色综合视频在线观看| 日本大香伊一区二区三区| 91年精品国产| 91麻豆精品在线观看| 色八戒一区二区三区| 欧美三区在线视频| 欧美日韩国产在线观看| 欧美日高清视频| 制服丝袜亚洲网站| 日韩欧美在线观看一区二区三区| 欧美一区二区成人6969| 精品国精品自拍自在线| 久久综合色综合88| 国产精品三级视频| 亚洲欧美一区二区三区极速播放| 亚洲欧美日韩精品久久久久| 亚洲成a人v欧美综合天堂| 日韩成人免费电影| 韩国女主播一区二区三区| 国产91精品入口| 色综合久久88色综合天天| 欧美精品一级二级三级| 日韩一级黄色片| 国产亚洲成aⅴ人片在线观看| 亚洲国产精品ⅴa在线观看| 亚洲天堂福利av| 偷拍与自拍一区| 欧美美女直播网站| 亚洲精品在线三区| 中文字幕一区二区三中文字幕| 亚洲一区二区三区四区五区中文| 五月婷婷色综合| 精品一区二区三区免费视频| 99久久伊人久久99| 欧美日韩国产经典色站一区二区三区 | 六月婷婷色综合| 麻豆freexxxx性91精品| 国产91丝袜在线播放| 99re这里只有精品首页| 9191久久久久久久久久久| 国产婷婷色一区二区三区| 一区二区三区欧美久久| 韩国av一区二区三区四区| 9人人澡人人爽人人精品| 制服丝袜成人动漫| 国产精品―色哟哟| 男人的天堂久久精品| 99久久er热在这里只有精品15 | 日韩和的一区二区| 国产成人免费高清| 欧美一区二区三区在线看| 国产日韩亚洲欧美综合| 日本va欧美va瓶| 色综合天天综合| 久久夜色精品国产噜噜av| 亚洲bt欧美bt精品| 99re66热这里只有精品3直播| 日韩一级在线观看| 亚洲va欧美va天堂v国产综合| 风间由美一区二区av101 | 精品国精品自拍自在线| 亚洲成人7777| av在线免费不卡| 精品卡一卡二卡三卡四在线| 亚洲成人av电影在线| 色综合久久久久| 日本一区二区视频在线| 韩国av一区二区| 欧美一区二区三区性视频| 亚洲情趣在线观看| www.亚洲在线| 久久久久久日产精品| 麻豆精品视频在线观看视频| 精品视频一区二区不卡| 综合久久久久综合| 成人教育av在线| 国产午夜精品一区二区| 麻豆视频观看网址久久| 91精品国产欧美一区二区成人| 一区二区三区欧美视频| 色婷婷国产精品久久包臀 | 欧美自拍偷拍午夜视频| 中文字幕一区免费在线观看| 粉嫩aⅴ一区二区三区四区五区| 日韩精品一区二区三区四区视频| 亚洲3atv精品一区二区三区| 欧美视频在线一区二区三区| 一区二区三区资源| 在线观看一区二区视频| 亚洲日本va午夜在线影院| 99精品久久99久久久久| 国产精品入口麻豆原神| 成人精品国产一区二区4080| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 欧美老年两性高潮| 亚洲国产cao| 欧美老女人在线| 日本美女一区二区三区| 日韩一区二区免费在线电影| 久久精品国产色蜜蜜麻豆| 这里只有精品99re| 老汉av免费一区二区三区| 欧美第一区第二区| 国产一区二区在线观看视频| 国产欧美一区二区在线观看| 成人福利视频在线| 亚洲激情自拍偷拍| 91精品国产综合久久久久| 久久99热国产| 中文字幕久久午夜不卡| 91久久精品一区二区| 婷婷成人激情在线网| 日韩午夜小视频| 国产成人精品免费| 亚洲欧美成人一区二区三区| 欧美区在线观看| 久久精品国产999大香线蕉| 亚洲国产高清在线观看视频| 日本精品视频一区二区| 日日骚欧美日韩| 国产日韩精品一区二区三区 | 成人黄页毛片网站| 亚洲激情在线激情| 精品嫩草影院久久| 99久久婷婷国产综合精品|