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

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

?? evp_enc.c

?? openssl是ssl的開源項目
?? C
字號:
/* crypto/evp/evp_enc.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 "evp.h"char *EVP_version="EVP part of OpenSSL 0.9.1c 23-Dec-1998";void EVP_CIPHER_CTX_init(ctx)EVP_CIPHER_CTX *ctx;	{	memset(ctx,0,sizeof(EVP_CIPHER_CTX));	/* ctx->cipher=NULL; */	}void EVP_CipherInit(ctx,data,key,iv,enc)EVP_CIPHER_CTX *ctx;EVP_CIPHER *data;unsigned char *key;unsigned char *iv;int enc;	{	if (enc)		EVP_EncryptInit(ctx,data,key,iv);	else			EVP_DecryptInit(ctx,data,key,iv);	}void EVP_CipherUpdate(ctx,out,outl,in,inl)EVP_CIPHER_CTX *ctx;unsigned char *out;int *outl;unsigned char *in;int inl;	{	if (ctx->encrypt)		EVP_EncryptUpdate(ctx,out,outl,in,inl);	else	EVP_DecryptUpdate(ctx,out,outl,in,inl);	}int EVP_CipherFinal(ctx,out,outl)EVP_CIPHER_CTX *ctx;unsigned char *out;int *outl;	{	if (ctx->encrypt)		{		EVP_EncryptFinal(ctx,out,outl);		return(1);		}	else	return(EVP_DecryptFinal(ctx,out,outl));	}void EVP_EncryptInit(ctx,cipher,key,iv)EVP_CIPHER_CTX *ctx;EVP_CIPHER *cipher;unsigned char *key;unsigned char *iv;	{	if (cipher != NULL)		ctx->cipher=cipher;	ctx->cipher->init(ctx,key,iv,1);	ctx->encrypt=1;	ctx->buf_len=0;	}void EVP_DecryptInit(ctx,cipher,key,iv)EVP_CIPHER_CTX *ctx;EVP_CIPHER *cipher;unsigned char *key;unsigned char *iv;	{	if (cipher != NULL)		ctx->cipher=cipher;	ctx->cipher->init(ctx,key,iv,0);	ctx->encrypt=0;	ctx->buf_len=0;	}void EVP_EncryptUpdate(ctx,out,outl,in,inl)EVP_CIPHER_CTX *ctx;unsigned char *out;int *outl;unsigned char *in;int inl;	{	int i,j,bl;	i=ctx->buf_len;	bl=ctx->cipher->block_size;	*outl=0;	if ((inl == 0) && (i != bl)) return;	if (i != 0)		{		if (i+inl < bl)			{			memcpy(&(ctx->buf[i]),in,inl);			ctx->buf_len+=inl;			return;			}		else			{			j=bl-i;			if (j != 0) memcpy(&(ctx->buf[i]),in,j);			ctx->cipher->do_cipher(ctx,out,ctx->buf,bl);			inl-=j;			in+=j;			out+=bl;			*outl+=bl;			}		}	i=inl%bl; /* how much is left */	inl-=i;	if (inl > 0)		{		ctx->cipher->do_cipher(ctx,out,in,inl);		*outl+=inl;		}	if (i != 0)		memcpy(ctx->buf,&(in[inl]),i);	ctx->buf_len=i;	}void EVP_EncryptFinal(ctx,out,outl)EVP_CIPHER_CTX *ctx;unsigned char *out;int *outl;	{	int i,n,b,bl;	b=ctx->cipher->block_size;	if (b == 1)		{		*outl=0;		return;		}	bl=ctx->buf_len;	n=b-bl;	for (i=bl; i<b; i++)		ctx->buf[i]=n;	ctx->cipher->do_cipher(ctx,out,ctx->buf,b);	*outl=b;	}void EVP_DecryptUpdate(ctx,out,outl,in,inl)EVP_CIPHER_CTX *ctx;unsigned char *out;int *outl;unsigned char *in;int inl;	{	int b,bl,n;	int keep_last=0;	*outl=0;	if (inl == 0) return;	b=ctx->cipher->block_size;	if (b > 1)		{		/* Is the input a multiple of the block size? */		bl=ctx->buf_len;		n=inl+bl;		if (n%b == 0)			{			if (inl < b) /* must be 'just one' buff */				{				memcpy(&(ctx->buf[bl]),in,inl);				ctx->buf_len=b;				*outl=0;				return;				}			keep_last=1;			inl-=b; /* don't do the last block */			}		}	EVP_EncryptUpdate(ctx,out,outl,in,inl);	/* if we have 'decrypted' a multiple of block size, make sure	 * we have a copy of this last block */	if (keep_last)		{		memcpy(&(ctx->buf[0]),&(in[inl]),b);#ifdef DEBUG		if (ctx->buf_len != 0)			{			abort();			}#endif		ctx->buf_len=b;		}	}int EVP_DecryptFinal(ctx,out,outl)EVP_CIPHER_CTX *ctx;unsigned char *out;int *outl;	{	int i,b;	int n;	*outl=0;	b=ctx->cipher->block_size;	if (b > 1)		{		if (ctx->buf_len != b)			{			EVPerr(EVP_F_EVP_DECRYPTFINAL,EVP_R_WRONG_FINAL_BLOCK_LENGTH);			return(0);			}		EVP_EncryptUpdate(ctx,ctx->buf,&n,ctx->buf,0);		if (n != b)			return(0);		n=ctx->buf[b-1];		if (n > b)			{			EVPerr(EVP_F_EVP_DECRYPTFINAL,EVP_R_BAD_DECRYPT);			return(0);			}		for (i=0; i<n; i++)			{			if (ctx->buf[--b] != n)				{				EVPerr(EVP_F_EVP_DECRYPTFINAL,EVP_R_BAD_DECRYPT);				return(0);				}			}		n=ctx->cipher->block_size-n;		for (i=0; i<n; i++)			out[i]=ctx->buf[i];		*outl=n;		}	else		*outl=0;	return(1);	}void EVP_CIPHER_CTX_cleanup(c)EVP_CIPHER_CTX *c;	{	if ((c->cipher != NULL) && (c->cipher->cleanup != NULL))		c->cipher->cleanup(c);	memset(c,0,sizeof(EVP_CIPHER_CTX));	}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
天天爽夜夜爽夜夜爽精品视频| 久久一夜天堂av一区二区三区| 中文字幕中文字幕中文字幕亚洲无线| 久久精品国产精品亚洲精品| 欧美久久一二三四区| 亚洲动漫第一页| 欧美日韩国产影片| 日韩电影在线一区二区| 一本色道久久综合亚洲aⅴ蜜桃| ...av二区三区久久精品| 91麻豆国产自产在线观看| 亚洲综合在线五月| 欧美私人免费视频| 免费久久99精品国产| 日韩色在线观看| 国产一区福利在线| 国产精品萝li| 欧美日韩精品是欧美日韩精品| 日韩成人dvd| 国产亚洲精久久久久久| 91在线观看地址| 图片区小说区国产精品视频| 欧美精品一区二区三区视频| 久久精品国产77777蜜臀| 久久久久国产精品麻豆| 99久久免费视频.com| 亚洲福利视频一区| 精品国产欧美一区二区| av福利精品导航| 亚洲国产成人av好男人在线观看| 欧美性大战久久久久久久蜜臀| 奇米精品一区二区三区在线观看 | 在线播放日韩导航| 日韩av一区二区三区| 久久综合色一综合色88| 色噜噜狠狠成人网p站| 免费三级欧美电影| 国产免费久久精品| 欧美美女激情18p| 国产成人精品www牛牛影视| 亚洲综合成人在线| 久久久综合九色合综国产精品| 91丨porny丨最新| 激情六月婷婷综合| 亚洲精品日韩综合观看成人91| 91精品国产综合久久国产大片| 粉嫩av一区二区三区在线播放 | 日韩精品中文字幕在线一区| 不卡的电影网站| 日本亚洲免费观看| 亚洲天堂a在线| 日韩精品最新网址| 欧美三级韩国三级日本三斤| 国产成人免费网站| 日韩专区中文字幕一区二区| 久久婷婷综合激情| 91.xcao| av一区二区三区黑人| 久久99国内精品| 午夜精品福利在线| 亚洲品质自拍视频网站| 日韩一卡二卡三卡四卡| 成人晚上爱看视频| 久草中文综合在线| 日韩国产精品91| 午夜在线成人av| 亚洲精品乱码久久久久久黑人| 久久婷婷国产综合国色天香| 欧美一区二区三区视频在线 | 精品一区二区三区在线观看 | 亚洲精品日韩综合观看成人91| 久久久精品综合| 日韩欧美成人午夜| 欧美三级午夜理伦三级中视频| 成人性生交大合| 丁香一区二区三区| 国产精品一区三区| 国产毛片一区二区| 久久99国产精品成人| 日本亚洲视频在线| 亚洲理论在线观看| 亚洲精品国产精品乱码不99 | 精品国产乱码久久久久久老虎| 欧美日韩国产片| 欧美三区免费完整视频在线观看| 欧洲一区在线电影| 成人动漫中文字幕| 激情图片小说一区| 激情亚洲综合在线| 国内精品久久久久影院色| 久久99久久99小草精品免视看| 美女视频黄免费的久久| 日韩不卡一区二区| 久久99精品国产.久久久久久| 蜜臂av日日欢夜夜爽一区| 日本欧美一区二区三区乱码 | 亚洲精品成a人| 亚洲黄色片在线观看| 一区二区三区四区亚洲| 亚洲动漫第一页| 久久99最新地址| 国产在线国偷精品产拍免费yy| 国产精品18久久久久久vr | 亚洲国产美女搞黄色| 亚洲第一av色| 麻豆高清免费国产一区| 国产一区美女在线| 不卡av在线网| 欧美日韩在线一区二区| 91麻豆精品国产91久久久久| 欧美精品一区二区三区蜜桃 | 日韩三级在线观看| 国产精品色婷婷| 天天色图综合网| 不卡av在线免费观看| 91精品福利在线一区二区三区| 日本一区二区三区视频视频| 亚洲国产精品一区二区久久恐怖片 | 国产人成亚洲第一网站在线播放 | 久久99九九99精品| 国产成人精品免费看| 欧美日韩日日摸| 国产清纯美女被跳蛋高潮一区二区久久w | 欧美日韩一区国产| 国产欧美精品在线观看| 三级欧美韩日大片在线看| av高清久久久| 久久综合一区二区| 天天综合天天做天天综合| av在线不卡网| 久久麻豆一区二区| 日韩专区在线视频| 欧美在线观看一区二区| 欧美国产日韩a欧美在线观看 | 国产色综合一区| 免费在线观看视频一区| 欧美在线观看一二区| 中文字幕av一区 二区| 国产一区二区日韩精品| 亚洲欧美视频在线观看视频| 亚洲超丰满肉感bbw| 成人免费高清在线| 精品成a人在线观看| 午夜天堂影视香蕉久久| 一本大道av伊人久久综合| 久久久电影一区二区三区| 日本三级亚洲精品| 宅男在线国产精品| 亚洲一区二区在线免费看| 91女厕偷拍女厕偷拍高清| 国产欧美日韩麻豆91| 国产乱对白刺激视频不卡| 91精品国产色综合久久久蜜香臀| 亚洲高清在线精品| 在线亚洲一区二区| 亚洲精选一二三| 91小宝寻花一区二区三区| 欧美激情一区不卡| 成人综合激情网| 中文字幕一区二区三区av| 丁香另类激情小说| 中文字幕精品三区| 懂色中文一区二区在线播放| 国产丝袜美腿一区二区三区| 天天综合网天天综合色| 欧美日韩黄色一区二区| 午夜av一区二区三区| 91精品在线观看入口| 日韩电影免费在线观看网站| 欧美一区二区视频网站| 久久精品99国产精品日本| 亚洲精品在线免费播放| 国产成人亚洲综合a∨婷婷| 国产欧美日产一区| 色综合天天狠狠| 亚洲国产美女搞黄色| 日韩一区二区三区高清免费看看| 久88久久88久久久| 亚洲国产精品高清| 色综合一个色综合| 五月天精品一区二区三区| 日韩一级欧美一级| 国产一区二区免费在线| 中文字幕一区二区5566日韩| 欧美三区在线视频| 精品一区二区综合| 国产精品久久久久精k8| 欧日韩精品视频| 看片的网站亚洲| 中文字幕精品—区二区四季| 色伊人久久综合中文字幕| 日日夜夜一区二区| 国产日韩视频一区二区三区| 91尤物视频在线观看| 舔着乳尖日韩一区| 中文字幕免费不卡在线| 欧美人妇做爰xxxⅹ性高电影| 久久99国产乱子伦精品免费| 国产精品午夜在线| 精品视频在线免费观看|