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

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

?? app_rand.c

?? openssl加密例子
?? C
字號:
/* apps/app_rand.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.]
 */
/* ====================================================================
 * Copyright (c) 1998-2000 The OpenSSL Project.  All rights reserved.
 *
 * 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 above 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 acknowledgment:
 *    "This product includes software developed by the OpenSSL Project
 *    for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
 *
 * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
 *    endorse or promote products derived from this software without
 *    prior written permission. For written permission, please contact
 *    openssl-core@openssl.org.
 *
 * 5. Products derived from this software may not be called "OpenSSL"
 *    nor may "OpenSSL" appear in their names without prior written
 *    permission of the OpenSSL Project.
 *
 * 6. Redistributions of any form whatsoever must retain the following
 *    acknowledgment:
 *    "This product includes software developed by the OpenSSL Project
 *    for use in the OpenSSL Toolkit (http://www.openssl.org/)"
 *
 * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
 * EXPRESSED 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 OpenSSL PROJECT OR
 * ITS 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.
 * ====================================================================
 *
 * This product includes cryptographic software written by Eric Young
 * (eay@cryptsoft.com).  This product includes software written by Tim
 * Hudson (tjh@cryptsoft.com).
 *
 */

#define NON_MAIN
#include "apps.h"
#undef NON_MAIN
#include <openssl/bio.h>
#include <openssl/rand.h>


static int seeded = 0;
static int egdsocket = 0;

int app_RAND_load_file(const char *file, BIO *bio_e, int dont_warn)
{
	int consider_randfile = (file == NULL);
	char buffer[200];
	
#ifdef OPENSSL_SYS_WINDOWS
	BIO_printf(bio_e,"Loading 'screen' into random state -");
	BIO_flush(bio_e);
	RAND_screen();
	BIO_printf(bio_e," done\n");
#endif

	if (file == NULL)
		file = RAND_file_name(buffer, sizeof buffer);
	else if (RAND_egd(file) > 0)
	{
		/* we try if the given filename is an EGD socket.
		   if it is, we don't write anything back to the file. */
		egdsocket = 1;
		return 1;
	}
	if (file == NULL || !RAND_load_file(file, -1))
	{
		if (RAND_status() == 0)
		{
			if (!dont_warn)
			{
				BIO_printf(bio_e,"unable to load 'random state'\n");
				BIO_printf(bio_e,"This means that the random number generator has not been seeded\n");
				BIO_printf(bio_e,"with much random data.\n");
				if (consider_randfile) /* explanation does not apply when a file is explicitly named */
				{
					BIO_printf(bio_e,"Consider setting the RANDFILE environment variable to point at a file that\n");
					BIO_printf(bio_e,"'random' data can be kept in (the file will be overwritten).\n");
				}
			}
			return 0;
		}
	}
	seeded = 1;
	return 1;
}

long app_RAND_load_files(char *name)
{
	char *p,*n;
	int last;
	long tot=0;
	int egd;
	
	for (;;)
	{
		last=0;
		for (p=name; ((*p != '\0') && (*p != LIST_SEPARATOR_CHAR)); p++);
		if (*p == '\0') last=1;
		*p='\0';
		n=name;
		name=p+1;
		if (*n == '\0') break;

		egd=RAND_egd(n);
		if (egd > 0)
			tot+=egd;
		else
			tot+=RAND_load_file(n,-1);
		if (last) break;
	}
	if (tot > 512)
		app_RAND_allow_write_file();
	return(tot);
}

int app_RAND_write_file(const char *file, BIO *bio_e)
{
	char buffer[200];
	
	if (egdsocket || !seeded)
		/* If we did not manage to read the seed file,
		 * we should not write a low-entropy seed file back --
		 * it would suppress a crucial warning the next time
		 * we want to use it. */
		return 0;

	if (file == NULL)
		file = RAND_file_name(buffer, sizeof buffer);
	if (file == NULL || !RAND_write_file(file))
	{
		BIO_printf(bio_e,"unable to write 'random state'\n");
		return 0;
	}
	return 1;
}

void app_RAND_allow_write_file(void)
{
	seeded = 1;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品一区二区三区免费视频| 国产欧美综合色| 精品国产sm最大网站| 久久久久久电影| 综合精品久久久| 亚洲福利一二三区| 国内成+人亚洲+欧美+综合在线 | 久久久国产一区二区三区四区小说 | 国产成人免费在线视频| 精品一区二区三区在线观看| 免费在线观看不卡| 视频一区欧美精品| 蜜乳av一区二区| 精品亚洲免费视频| 成人涩涩免费视频| 91网站最新地址| 欧美无乱码久久久免费午夜一区 | 午夜精品久久久久久久久久久| 日韩精彩视频在线观看| 国产麻豆9l精品三级站| 91欧美一区二区| 欧美疯狂做受xxxx富婆| 国产丝袜美腿一区二区三区| 亚洲欧美日韩中文播放 | 日韩一区二区三区四区五区六区| 久久久精品2019中文字幕之3| 亚洲欧美日韩一区二区| 日本不卡一区二区| 不卡电影免费在线播放一区| 欧美日韩国产三级| 国产婷婷精品av在线| 亚洲国产成人va在线观看天堂 | 日本一区二区在线不卡| 亚洲一区在线视频观看| 国产河南妇女毛片精品久久久| 色婷婷国产精品综合在线观看| 日韩精品一区二区三区四区| 国产精品麻豆一区二区 | 欧美男人的天堂一二区| 国产欧美一区二区三区网站| 五月婷婷久久综合| 北条麻妃国产九九精品视频| 日韩欧美高清一区| 亚洲激情中文1区| 国产精品一区二区三区网站| 欧美午夜不卡视频| 亚洲欧洲日韩综合一区二区| 久久精品国产99久久6| 在线一区二区三区四区| 国产视频一区在线观看 | 欧美成人a∨高清免费观看| 亚洲手机成人高清视频| 国产精品一区二区三区乱码| 91精品国产手机| 一级中文字幕一区二区| 精品一区精品二区高清| 欧美性xxxxxx少妇| 中文字幕二三区不卡| 日韩av成人高清| 色狠狠av一区二区三区| 欧美成人aa大片| 亚洲综合在线观看视频| 91亚洲国产成人精品一区二三| 精品国产一区二区三区忘忧草| 亚洲高清久久久| 色天使色偷偷av一区二区| 国产精品免费人成网站| 国产传媒日韩欧美成人| 久久综合999| 免费观看日韩电影| 777欧美精品| 天堂蜜桃91精品| 欧美三级电影网站| 亚洲综合丝袜美腿| 欧美在线色视频| 一区二区在线观看av| 国产精品一区二区三区四区 | 麻豆成人av在线| 欧美喷潮久久久xxxxx| 亚洲成av人片一区二区梦乃| 欧美综合视频在线观看| 一级精品视频在线观看宜春院 | 欧美日韩精品专区| 亚洲高清不卡在线| 欧美日韩免费电影| 无码av中文一区二区三区桃花岛| 在线观看视频欧美| 亚洲福利视频三区| 欧美日韩成人高清| 日韩va亚洲va欧美va久久| 欧美日本国产视频| 人妖欧美一区二区| 欧美日韩成人高清| 午夜精品福利视频网站| 91色porny| 一区二区三区欧美日韩| 欧美日韩国产综合久久| 日韩av在线播放中文字幕| 欧美一级二级三级蜜桃| 黄一区二区三区| 国产午夜精品在线观看| caoporen国产精品视频| 亚洲美女电影在线| 欧美三级视频在线| 免费高清在线一区| 337p日本欧洲亚洲大胆色噜噜| 韩国av一区二区三区四区| 国产日韩欧美在线一区| 99久久99精品久久久久久 | 蜜臀av一区二区| 日韩欧美123| 久久爱www久久做| 亚洲色图.com| 欧美精品日韩一本| 国产一区二区三区国产| 自拍偷拍亚洲欧美日韩| 欧美日本在线播放| 国产一区二区三区黄视频| 国产午夜亚洲精品午夜鲁丝片| 国产乱码精品1区2区3区| 久久精品视频在线免费观看| aaa欧美日韩| 天天色 色综合| 欧美精品一区二区三区视频| 99麻豆久久久国产精品免费优播| 亚洲综合男人的天堂| 欧美刺激午夜性久久久久久久| 国产激情偷乱视频一区二区三区| 亚洲乱码国产乱码精品精98午夜 | 日韩欧美一区二区免费| 国产不卡在线视频| 亚洲综合男人的天堂| 欧美精品一区二区在线播放| 99国产精品久久久久| 日韩中文字幕亚洲一区二区va在线 | 欧美一三区三区四区免费在线看 | 久久这里只有精品6| 91婷婷韩国欧美一区二区| 视频在线在亚洲| 欧美国产日韩亚洲一区| 欧美日韩另类一区| 成人激情动漫在线观看| 日韩av中文字幕一区二区| 亚洲国产成人午夜在线一区| 欧美日韩国产一二三| 欧美色手机在线观看| 欧美电影免费提供在线观看| 国产成人在线看| 亚洲v中文字幕| 国产精品婷婷午夜在线观看| 8x福利精品第一导航| jlzzjlzz欧美大全| 另类调教123区| 亚洲影院免费观看| 中文在线一区二区| 精品国产一区二区亚洲人成毛片 | 亚洲免费观看视频| 久久久亚洲午夜电影| 欧美日韩精品久久久| 99视频精品免费视频| 精品综合久久久久久8888| 亚洲最大成人综合| 久久久久久免费毛片精品| 制服.丝袜.亚洲.另类.中文| 色综合天天综合狠狠| 国产精品自拍三区| 日本美女一区二区三区视频| 亚洲欧洲综合另类在线| 中文字幕欧美日韩一区| 精品成人免费观看| 91精品综合久久久久久| 在线中文字幕一区二区| 99综合电影在线视频| 国产精品99久久久久| 久久99国产精品久久| 日本vs亚洲vs韩国一区三区二区| 一区二区三区四区蜜桃| 国产精品久久影院| 国产目拍亚洲精品99久久精品| 精品剧情在线观看| 日韩一区二区三区精品视频| 欧美色电影在线| 欧美探花视频资源| eeuss国产一区二区三区| 国产一区二区精品在线观看| 国精品**一区二区三区在线蜜桃| 亚洲gay无套男同| 亚洲日本在线视频观看| 亚洲婷婷综合久久一本伊一区| 国产精品视频一区二区三区不卡| 久久久精品中文字幕麻豆发布| 精品国产第一区二区三区观看体验 | 久久综合九色欧美综合狠狠| 欧美成人a在线| 欧美www视频| 日韩欧美高清dvd碟片| 91精品久久久久久久91蜜桃| 欧美一区二区三区不卡| 日韩三级在线观看| 日韩一区国产二区欧美三区|