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

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

?? aes_cfb.c

?? OpenSSL 0.9.8k 最新版OpenSSL
?? C
字號:
/* crypto/aes/aes_cfb.c -*- mode:C; c-file-style: "eay" -*- *//* ==================================================================== * Copyright (c) 1998-2002 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. * ==================================================================== * *//* 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.] */#ifndef AES_DEBUG# ifndef NDEBUG#  define NDEBUG# endif#endif#include <assert.h>#include <openssl/aes.h>#include "aes_locl.h"#include "e_os.h"/* The input and output encrypted as though 128bit cfb mode is being * used.  The extra state information to record how much of the * 128bit block we have used is contained in *num; */void AES_cfb128_encrypt(const unsigned char *in, unsigned char *out,	const unsigned long length, const AES_KEY *key,	unsigned char *ivec, int *num, const int enc) {	unsigned int n;	unsigned long l = length;	unsigned char c;	assert(in && out && key && ivec && num);	n = *num;	if (enc) {		while (l--) {			if (n == 0) {				AES_encrypt(ivec, ivec, key);			}			ivec[n] = *(out++) = *(in++) ^ ivec[n];			n = (n+1) % AES_BLOCK_SIZE;		}	} else {		while (l--) {			if (n == 0) {				AES_encrypt(ivec, ivec, key);			}			c = *(in);			*(out++) = *(in++) ^ ivec[n];			ivec[n] = c;			n = (n+1) % AES_BLOCK_SIZE;		}	}	*num=n;}/* This expects a single block of size nbits for both in and out. Note that   it corrupts any extra bits in the last byte of out */void AES_cfbr_encrypt_block(const unsigned char *in,unsigned char *out,			    const int nbits,const AES_KEY *key,			    unsigned char *ivec,const int enc)    {    int n,rem,num;    unsigned char ovec[AES_BLOCK_SIZE*2];    if (nbits<=0 || nbits>128) return;	/* fill in the first half of the new IV with the current IV */	memcpy(ovec,ivec,AES_BLOCK_SIZE);	/* construct the new IV */	AES_encrypt(ivec,ivec,key);	num = (nbits+7)/8;	if (enc)	/* encrypt the input */	    for(n=0 ; n < num ; ++n)		out[n] = (ovec[AES_BLOCK_SIZE+n] = in[n] ^ ivec[n]);	else		/* decrypt the input */	    for(n=0 ; n < num ; ++n)		out[n] = (ovec[AES_BLOCK_SIZE+n] = in[n]) ^ ivec[n];	/* shift ovec left... */	rem = nbits%8;	num = nbits/8;	if(rem==0)	    memcpy(ivec,ovec+num,AES_BLOCK_SIZE);	else	    for(n=0 ; n < AES_BLOCK_SIZE ; ++n)		ivec[n] = ovec[n+num]<<rem | ovec[n+num+1]>>(8-rem);    /* it is not necessary to cleanse ovec, since the IV is not secret */    }/* N.B. This expects the input to be packed, MS bit first */void AES_cfb1_encrypt(const unsigned char *in, unsigned char *out,		      const unsigned long length, const AES_KEY *key,		      unsigned char *ivec, int *num, const int enc)    {    unsigned int n;    unsigned char c[1],d[1];    assert(in && out && key && ivec && num);    assert(*num == 0);    memset(out,0,(length+7)/8);    for(n=0 ; n < length ; ++n)	{	c[0]=(in[n/8]&(1 << (7-n%8))) ? 0x80 : 0;	AES_cfbr_encrypt_block(c,d,1,key,ivec,enc);	out[n/8]=(out[n/8]&~(1 << (7-n%8)))|((d[0]&0x80) >> (n%8));	}    }void AES_cfb8_encrypt(const unsigned char *in, unsigned char *out,		      const unsigned long length, const AES_KEY *key,		      unsigned char *ivec, int *num, const int enc)    {    unsigned int n;    assert(in && out && key && ivec && num);    assert(*num == 0);    for(n=0 ; n < length ; ++n)	AES_cfbr_encrypt_block(&in[n],&out[n],8,key,ivec,enc);    }

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久综合久久综合久久综合| 欧美综合亚洲图片综合区| 88在线观看91蜜桃国自产| 亚洲美女屁股眼交| 91久久精品一区二区三| 一区二区三区成人| 欧美在线免费视屏| 一级做a爱片久久| 欧美区一区二区三区| 日本色综合中文字幕| 欧美一级高清大全免费观看| 麻豆国产欧美一区二区三区| 日韩亚洲欧美在线| 国产一区二区三区黄视频 | 国产人成亚洲第一网站在线播放| 国产精品资源在线看| 中文字幕欧美激情| 91国偷自产一区二区三区观看| 亚洲www啪成人一区二区麻豆| 在线成人av影院| 激情国产一区二区| 中文一区在线播放| 欧美吞精做爰啪啪高潮| 日韩国产欧美在线视频| 精品88久久久久88久久久| 成人精品一区二区三区中文字幕| 亚洲人成网站色在线观看| 91精品国产综合久久福利软件 | 欧美美女激情18p| 久草中文综合在线| 中文字幕精品—区二区四季| 欧洲视频一区二区| 另类综合日韩欧美亚洲| 欧美国产日产图区| 欧美美女bb生活片| 成人av资源站| 五月综合激情网| 中文字幕乱码一区二区免费| 在线影视一区二区三区| 老司机精品视频线观看86| 国产精品久久久久久久久久久免费看 | 奇米亚洲午夜久久精品| 国产欧美日韩综合精品一区二区| 99精品黄色片免费大全| 男女男精品网站| 亚洲另类在线视频| 久久综合久久综合九色| 国产欧美一二三区| 欧美日韩免费不卡视频一区二区三区| 久久精品国产久精国产| 亚洲人成在线观看一区二区| 日韩亚洲欧美在线| 日本福利一区二区| 国产精品一区专区| 天天综合色天天综合色h| 国产精品久久久久桃色tv| 欧美一二三在线| 欧美在线制服丝袜| 成人av网址在线观看| 久久国产精品第一页| 亚洲电影欧美电影有声小说| 国产精品久久久一区麻豆最新章节| 欧美一区二区女人| 欧美三级乱人伦电影| 成人免费视频一区| 激情综合色播激情啊| 亚洲一区二区三区不卡国产欧美| 国产精品女主播在线观看| 日韩免费视频一区二区| 欧美视频一区在线| 波多野结衣一区二区三区| 国产一区二区不卡在线| 久久爱另类一区二区小说| 亚洲成人动漫在线免费观看| 亚洲男同1069视频| 亚洲欧美一区二区三区国产精品| 日本一区二区免费在线| 久久色.com| 久久综合九色综合97婷婷女人 | 日韩av一级电影| 亚洲国产精品视频| 亚洲伦在线观看| |精品福利一区二区三区| 国产亚洲人成网站| 久久久久久久久免费| 精品久久久久久久久久久久久久久 | 欧美日韩aaaaaa| 欧美午夜电影网| 欧洲一区二区三区在线| 欧美专区亚洲专区| 欧美色窝79yyyycom| 欧美三级在线播放| 色婷婷亚洲综合| 97精品久久久午夜一区二区三区| 国产精品羞羞答答xxdd| 精品一区二区在线播放| 久久精品国产成人一区二区三区| 日韩av一级片| 久久国产婷婷国产香蕉| 国产中文字幕一区| 成人精品免费看| 成人av电影在线观看| 波多野结衣中文字幕一区| 色综合天天性综合| 欧美日韩另类一区| 91精品国产麻豆| 午夜日韩在线电影| 奇米亚洲午夜久久精品| 九一九一国产精品| 国产成人精品一区二区三区网站观看| 国产成+人+日韩+欧美+亚洲| 99国产精品久| 欧美性猛片xxxx免费看久爱| 欧美日韩三级视频| 2021久久国产精品不只是精品| 精品电影一区二区三区| 久久久精品免费网站| 亚洲欧美在线视频观看| 一区二区三区日韩在线观看| 日韩精品亚洲一区二区三区免费| 久久不见久久见免费视频1| 成人黄色一级视频| 欧美日韩精品欧美日韩精品一| 日韩欧美一区二区在线视频| 国产午夜精品在线观看| 亚洲精品国产第一综合99久久| 人人狠狠综合久久亚洲| 国产69精品久久久久毛片| 在线观看免费成人| 久久影音资源网| 亚洲精选视频在线| 国产一区二区三区在线看麻豆| av亚洲精华国产精华精| 欧美一级二级在线观看| 国产精品久久久久影院| 日韩av中文字幕一区二区| 成人毛片老司机大片| 欧美另类变人与禽xxxxx| 国产性色一区二区| 天堂在线一区二区| 不卡的av在线播放| 日韩一区二区视频| 亚洲欧美偷拍卡通变态| 国模无码大尺度一区二区三区| 日本道色综合久久| 久久久久国产精品人| 亚洲h在线观看| 99re这里只有精品视频首页| 欧美一二三在线| 亚洲一区二三区| 国产不卡一区视频| 欧美一区二区在线观看| 亚洲国产精品黑人久久久| 免费高清在线视频一区·| 91在线免费看| 国产精品网站一区| 免费观看日韩av| 欧美日韩一二三| 亚洲日本欧美天堂| 国产jizzjizz一区二区| 日韩一区二区免费在线观看| 一区二区三区日韩在线观看| 成人网页在线观看| 精品国产伦理网| 日韩激情在线观看| 欧美日韩中文精品| 一区二区三区不卡视频在线观看| 成人激情午夜影院| 国产女同互慰高潮91漫画| 蜜桃久久久久久| 88在线观看91蜜桃国自产| 亚洲国产精品一区二区尤物区| 91视频免费看| 国产精品私人影院| 国产91丝袜在线播放0| 日韩美一区二区三区| 蜜臂av日日欢夜夜爽一区| 91精品国产品国语在线不卡| 亚洲福利视频导航| 欧美性色欧美a在线播放| 一区二区三区久久| 在线观看国产日韩| 亚洲制服欧美中文字幕中文字幕| 99精品欧美一区二区三区小说| 免费观看久久久4p| 宅男噜噜噜66一区二区66| 日韩国产成人精品| 91精品国产色综合久久不卡电影| 日韩中文字幕一区二区三区| 在线观看91av| 日本不卡视频在线观看| 日韩一区二区在线看片| 久久精品国产亚洲一区二区三区| 日韩精品一区二区三区swag| 免费久久99精品国产| 欧美一区二区三区公司| 狠狠色丁香婷综合久久| 国产欧美日韩在线视频| 成人激情黄色小说| 亚洲女同一区二区|