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

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

?? t_pkey.c

?? openssl包含TLS
?? C
字號:
/* crypto/asn1/t_pkey.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 <openssl/buffer.h>#include <openssl/bn.h>#ifndef OPENSSL_NO_RSA#include <openssl/rsa.h>#endif#ifndef OPENSSL_NO_DH#include <openssl/dh.h>#endif#ifndef OPENSSL_NO_DSA#include <openssl/dsa.h>#endifstatic int print(BIO *fp,const char *str,BIGNUM *num,		unsigned char *buf,int off);#ifndef OPENSSL_NO_RSA#ifndef OPENSSL_NO_FP_APIint RSA_print_fp(FILE *fp, const RSA *x, int off)        {        BIO *b;        int ret;        if ((b=BIO_new(BIO_s_file())) == NULL)		{		RSAerr(RSA_F_RSA_PRINT_FP,ERR_R_BUF_LIB);                return(0);		}        BIO_set_fp(b,fp,BIO_NOCLOSE);        ret=RSA_print(b,x,off);        BIO_free(b);        return(ret);        }#endifint RSA_print(BIO *bp, const RSA *x, int off)	{	char str[128];	const char *s;	unsigned char *m=NULL;	int ret=0;	size_t buf_len=0, i;	if (x->n)		buf_len = (size_t)BN_num_bytes(x->n);	if (x->e)		if (buf_len < (i = (size_t)BN_num_bytes(x->e)))			buf_len = i;	if (x->d)		if (buf_len < (i = (size_t)BN_num_bytes(x->d)))			buf_len = i;	if (x->p)		if (buf_len < (i = (size_t)BN_num_bytes(x->p)))			buf_len = i;	if (x->q)		if (buf_len < (i = (size_t)BN_num_bytes(x->q)))			buf_len = i;	if (x->dmp1)		if (buf_len < (i = (size_t)BN_num_bytes(x->dmp1)))			buf_len = i;	if (x->dmq1)		if (buf_len < (i = (size_t)BN_num_bytes(x->dmq1)))			buf_len = i;	if (x->iqmp)		if (buf_len < (i = (size_t)BN_num_bytes(x->iqmp)))			buf_len = i;	m=(unsigned char *)OPENSSL_malloc(buf_len+10);	if (m == NULL)		{		RSAerr(RSA_F_RSA_PRINT,ERR_R_MALLOC_FAILURE);		goto err;		}	if (x->d != NULL)		{		if(!BIO_indent(bp,off,128))		   goto err;		if (BIO_printf(bp,"Private-Key: (%d bit)\n",BN_num_bits(x->n))			<= 0) goto err;		}	if (x->d == NULL)		BIO_snprintf(str,sizeof str,"Modulus (%d bit):",BN_num_bits(x->n));	else		BUF_strlcpy(str,"modulus:",sizeof str);	if (!print(bp,str,x->n,m,off)) goto err;	s=(x->d == NULL)?"Exponent:":"publicExponent:";	if (!print(bp,s,x->e,m,off)) goto err;	if (!print(bp,"privateExponent:",x->d,m,off)) goto err;	if (!print(bp,"prime1:",x->p,m,off)) goto err;	if (!print(bp,"prime2:",x->q,m,off)) goto err;	if (!print(bp,"exponent1:",x->dmp1,m,off)) goto err;	if (!print(bp,"exponent2:",x->dmq1,m,off)) goto err;	if (!print(bp,"coefficient:",x->iqmp,m,off)) goto err;	ret=1;err:	if (m != NULL) OPENSSL_free(m);	return(ret);	}#endif /* OPENSSL_NO_RSA */#ifndef OPENSSL_NO_DSA#ifndef OPENSSL_NO_FP_APIint DSA_print_fp(FILE *fp, const DSA *x, int off)	{	BIO *b;	int ret;	if ((b=BIO_new(BIO_s_file())) == NULL)		{		DSAerr(DSA_F_DSA_PRINT_FP,ERR_R_BUF_LIB);		return(0);		}	BIO_set_fp(b,fp,BIO_NOCLOSE);	ret=DSA_print(b,x,off);	BIO_free(b);	return(ret);	}#endifint DSA_print(BIO *bp, const DSA *x, int off)	{	unsigned char *m=NULL;	int ret=0;	size_t buf_len=0,i;	if (x->p)		buf_len = (size_t)BN_num_bytes(x->p);	if (x->q)		if (buf_len < (i = (size_t)BN_num_bytes(x->q)))			buf_len = i;	if (x->g)		if (buf_len < (i = (size_t)BN_num_bytes(x->g)))			buf_len = i;	if (x->priv_key)		if (buf_len < (i = (size_t)BN_num_bytes(x->priv_key)))			buf_len = i;	if (x->pub_key)		if (buf_len < (i = (size_t)BN_num_bytes(x->pub_key)))			buf_len = i;	m=(unsigned char *)OPENSSL_malloc(buf_len+10);	if (m == NULL)		{		DSAerr(DSA_F_DSA_PRINT,ERR_R_MALLOC_FAILURE);		goto err;		}	if (x->priv_key != NULL)		{		if(!BIO_indent(bp,off,128))		   goto err;		if (BIO_printf(bp,"Private-Key: (%d bit)\n",BN_num_bits(x->p))			<= 0) goto err;		}	if ((x->priv_key != NULL) && !print(bp,"priv:",x->priv_key,m,off))		goto err;	if ((x->pub_key  != NULL) && !print(bp,"pub: ",x->pub_key,m,off))		goto err;	if ((x->p != NULL) && !print(bp,"P:   ",x->p,m,off)) goto err;	if ((x->q != NULL) && !print(bp,"Q:   ",x->q,m,off)) goto err;	if ((x->g != NULL) && !print(bp,"G:   ",x->g,m,off)) goto err;	ret=1;err:	if (m != NULL) OPENSSL_free(m);	return(ret);	}#endif /* !OPENSSL_NO_DSA */static int print(BIO *bp, const char *number, BIGNUM *num, unsigned char *buf,	     int off)	{	int n,i;	const char *neg;	if (num == NULL) return(1);	neg=(num->neg)?"-":"";	if(!BIO_indent(bp,off,128))		return 0;	if (BN_num_bytes(num) <= BN_BYTES)		{		if (BIO_printf(bp,"%s %s%lu (%s0x%lx)\n",number,neg,			(unsigned long)num->d[0],neg,(unsigned long)num->d[0])			<= 0) return(0);		}	else		{		buf[0]=0;		if (BIO_printf(bp,"%s%s",number,			(neg[0] == '-')?" (Negative)":"") <= 0)			return(0);		n=BN_bn2bin(num,&buf[1]);			if (buf[1] & 0x80)			n++;		else	buf++;		for (i=0; i<n; i++)			{			if ((i%15) == 0)				{				if(BIO_puts(bp,"\n") <= 0				   || !BIO_indent(bp,off+4,128))				    return 0;				}			if (BIO_printf(bp,"%02x%s",buf[i],((i+1) == n)?"":":")				<= 0) return(0);			}		if (BIO_write(bp,"\n",1) <= 0) return(0);		}	return(1);	}#ifndef OPENSSL_NO_DH#ifndef OPENSSL_NO_FP_APIint DHparams_print_fp(FILE *fp, const DH *x)        {        BIO *b;        int ret;        if ((b=BIO_new(BIO_s_file())) == NULL)		{		DHerr(DH_F_DHPARAMS_PRINT_FP,ERR_R_BUF_LIB);                return(0);		}        BIO_set_fp(b,fp,BIO_NOCLOSE);        ret=DHparams_print(b, x);        BIO_free(b);        return(ret);        }#endifint DHparams_print(BIO *bp, const DH *x)	{	unsigned char *m=NULL;	int reason=ERR_R_BUF_LIB,ret=0;	size_t buf_len=0, i;	if (x->p)		buf_len = (size_t)BN_num_bytes(x->p);	if (x->g)		if (buf_len < (i = (size_t)BN_num_bytes(x->g)))			buf_len = i;	m=(unsigned char *)OPENSSL_malloc(buf_len+10);	if (m == NULL)		{		reason=ERR_R_MALLOC_FAILURE;		goto err;		}	if (BIO_printf(bp,"Diffie-Hellman-Parameters: (%d bit)\n",		BN_num_bits(x->p)) <= 0)		goto err;	if (!print(bp,"prime:",x->p,m,4)) goto err;	if (!print(bp,"generator:",x->g,m,4)) goto err;	if (x->length != 0)		{		if (BIO_printf(bp,"    recommended-private-length: %d bits\n",			(int)x->length) <= 0) goto err;		}	ret=1;	if (0)		{err:		DHerr(DH_F_DHPARAMS_PRINT,reason);		}	if (m != NULL) OPENSSL_free(m);	return(ret);	}#endif#ifndef OPENSSL_NO_DSA#ifndef OPENSSL_NO_FP_APIint DSAparams_print_fp(FILE *fp, const DSA *x)        {        BIO *b;        int ret;        if ((b=BIO_new(BIO_s_file())) == NULL)		{		DSAerr(DSA_F_DSAPARAMS_PRINT_FP,ERR_R_BUF_LIB);                return(0);		}        BIO_set_fp(b,fp,BIO_NOCLOSE);        ret=DSAparams_print(b, x);        BIO_free(b);        return(ret);        }#endifint DSAparams_print(BIO *bp, const DSA *x)	{	unsigned char *m=NULL;	int reason=ERR_R_BUF_LIB,ret=0;	size_t buf_len=0,i;	if (x->p)		buf_len = (size_t)BN_num_bytes(x->p);	if (x->q)		if (buf_len < (i = (size_t)BN_num_bytes(x->q)))			buf_len = i;	if (x->g)		if (buf_len < (i = (size_t)BN_num_bytes(x->g)))			buf_len = i;	m=(unsigned char *)OPENSSL_malloc(buf_len+10);	if (m == NULL)		{		reason=ERR_R_MALLOC_FAILURE;		goto err;		}	if (BIO_printf(bp,"DSA-Parameters: (%d bit)\n",		BN_num_bits(x->p)) <= 0)		goto err;	if (!print(bp,"p:",x->p,m,4)) goto err;	if (!print(bp,"q:",x->q,m,4)) goto err;	if (!print(bp,"g:",x->g,m,4)) goto err;	ret=1;err:	if (m != NULL) OPENSSL_free(m);	DSAerr(DSA_F_DSAPARAMS_PRINT,reason);	return(ret);	}#endif /* !OPENSSL_NO_DSA */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产百合女同互慰| 国产喷白浆一区二区三区| 国产精品美女久久久久aⅴ国产馆| 亚洲欧洲日产国产综合网| 精油按摩中文字幕久久| 在线观看91av| 五月激情丁香一区二区三区| 99热99精品| 精品久久久久久无| 蜜臀av在线播放一区二区三区| 欧美日韩中文字幕一区二区| 丝袜美腿亚洲综合| 欧美一级片在线| 国产剧情一区二区三区| 国产精品欧美久久久久一区二区| 高清不卡一二三区| 五月婷婷综合网| 欧美丰满美乳xxx高潮www| 亚洲国产色一区| 日韩欧美一区中文| 久久久久久夜精品精品免费| 日韩在线观看一区二区| 91精品国产一区二区三区蜜臀 | 成人欧美一区二区三区黑人麻豆| 2023国产一二三区日本精品2022| 91精品国产福利| 26uuu久久天堂性欧美| 精品国产乱码久久久久久浪潮| 精品理论电影在线| 久久精品亚洲乱码伦伦中文 | 国产亚洲精品中文字幕| 国产精品美女久久久久久久 | 欧洲精品一区二区三区在线观看| 一本大道久久a久久精二百| 欧美性高清videossexo| 日韩一级片网站| 中文字幕不卡在线观看| 一区二区三区资源| 麻豆精品一区二区综合av| 狠狠色丁香九九婷婷综合五月| 国产成人aaa| 色av一区二区| 欧美精品一区二区三区在线| 亚洲视频中文字幕| 看国产成人h片视频| 99久久99久久久精品齐齐| 欧美一区二区三区思思人| 亚洲色图在线看| 久久精品国产**网站演员| 成人少妇影院yyyy| 日韩一级免费一区| 亚洲综合一区二区精品导航| 国内成人免费视频| 欧美日韩一区二区三区视频| 久久精品人人做| 麻豆精品一二三| 欧美视频在线观看一区二区| 国产日产亚洲精品系列| 六月丁香婷婷久久| 欧美老肥妇做.爰bbww| 亚洲另类春色国产| 成人黄色国产精品网站大全在线免费观看 | 91精品国产综合久久精品性色| 国产精品美女一区二区三区 | 国产欧美一区二区三区网站| 日本欧美久久久久免费播放网| a4yy欧美一区二区三区| 日本一区二区三区dvd视频在线| 免费在线欧美视频| 欧美一级艳片视频免费观看| 美洲天堂一区二卡三卡四卡视频| 欧美系列在线观看| 婷婷丁香久久五月婷婷| 欧美在线视频日韩| 一区二区免费在线播放| 91亚洲精品一区二区乱码| 亚洲视频在线一区二区| 丁香亚洲综合激情啪啪综合| 欧美激情一区三区| 色先锋资源久久综合| 亚洲日本在线观看| 欧美主播一区二区三区| 亚洲18女电影在线观看| 精品999在线播放| 国产激情视频一区二区在线观看 | 在线观看免费一区| 免费高清在线视频一区·| 久久综合av免费| 99久久99久久精品免费看蜜桃| 亚洲欧美一区二区三区久本道91| 日韩av成人高清| 激情欧美一区二区三区在线观看| 日韩欧美一卡二卡| 成人免费观看男女羞羞视频| 亚洲国产精品一区二区www| 日韩精品中文字幕在线一区| www.日韩大片| 裸体在线国模精品偷拍| 一区二区三区在线不卡| 欧美日本不卡视频| 97久久久精品综合88久久| 蜜桃视频在线一区| 一区二区三区不卡在线观看 | 国产精品一区二区无线| 亚洲成人福利片| 亚洲电影一级黄| 2020日本不卡一区二区视频| 欧美日韩一卡二卡三卡| 国产一区二区美女诱惑| 亚洲gay无套男同| 国产精品久久久久久久久免费樱桃 | 国产乱子轮精品视频| 一区二区三区精品在线| 欧美国产日韩亚洲一区| 久久久久久9999| 国产亚洲精品福利| 久久久久久日产精品| 久久久五月婷婷| 国产视频一区二区三区在线观看| 精品成人私密视频| 亚洲精品一区二区三区精华液| 精品福利视频一区二区三区| 精品人在线二区三区| 26uuu亚洲综合色| 国产亚洲综合色| 椎名由奈av一区二区三区| 亚洲欧美福利一区二区| 亚洲黄色av一区| 亚洲午夜av在线| 青青草国产精品97视觉盛宴| 日韩一区欧美一区| 亚洲欧美色一区| 久久精品一区二区三区四区| 欧美性生活一区| 成人国产精品免费观看| 极品少妇xxxx偷拍精品少妇| 一区二区三区在线免费观看| 国产色产综合产在线视频| 欧美成人三级在线| 精品99一区二区| 欧美videos大乳护士334| 日韩欧美不卡在线观看视频| 欧美性三三影院| 欧美日韩精品综合在线| 欧洲一区二区三区免费视频| 日本久久精品电影| 一区二区三区四区视频精品免费 | 欧美乱熟臀69xxxxxx| 欧美性猛片aaaaaaa做受| 91国产成人在线| 欧美tk丨vk视频| 欧美大度的电影原声| 欧美理论电影在线| 欧美一区二区三区四区视频 | 日韩美女主播在线视频一区二区三区| 欧美人伦禁忌dvd放荡欲情| 色欧美88888久久久久久影院| 国产成人免费视频网站高清观看视频| 亚洲五月六月丁香激情| 精品亚洲欧美一区| 懂色av噜噜一区二区三区av| 日本韩国欧美一区二区三区| 在线亚洲+欧美+日本专区| 欧美一区二区精品在线| 久久无码av三级| 亚洲精品免费视频| 久久成人久久爱| 高清视频一区二区| 色婷婷久久一区二区三区麻豆| 欧美精品在线一区二区三区| 日韩色视频在线观看| 国产精品嫩草影院av蜜臀| 亚洲一区二区美女| 成人午夜电影网站| 精品一二线国产| 亚洲精品一二三区| 老司机午夜精品99久久| 亚洲福利视频一区二区| 日本中文字幕不卡| 色菇凉天天综合网| 日韩午夜三级在线| 中文字幕一区二区三区在线不卡| 亚洲6080在线| 在线免费观看日本欧美| 久久久综合精品| 爽爽淫人综合网网站| 色综合天天综合给合国产| 欧美精品 国产精品| 91美女在线视频| 欧美激情一区在线| 国产精品一色哟哟哟| www国产精品av| 日韩电影免费在线| 欧美日韩一区国产| 亚瑟在线精品视频| 欧美一区二区三区的| 午夜影院久久久| 欧美日韩高清不卡| 青青草视频一区| 久久中文娱乐网|