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

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

?? c_enc.c

?? turecrypt6.0版本的源碼
?? C
字號:
/* Deprecated/legacy */

/* crypto/cast/c_enc.c */
/* Copyright (C) 1995-1997 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 "Cast.h"
#include "Cast_lcl.h"

void CAST_encrypt(data,key)
CAST_LONG *data;
CAST_KEY *key;
	{
	register CAST_LONG l,r,*k,t;

	k= &(key->data[0]);
	l=data[0];
	r=data[1];

	E_CAST( 0,k,l,r,+,^,-);
	E_CAST( 1,k,r,l,^,-,+);
	E_CAST( 2,k,l,r,-,+,^);
	E_CAST( 3,k,r,l,+,^,-);
	E_CAST( 4,k,l,r,^,-,+);
	E_CAST( 5,k,r,l,-,+,^);
	E_CAST( 6,k,l,r,+,^,-);
	E_CAST( 7,k,r,l,^,-,+);
	E_CAST( 8,k,l,r,-,+,^);
	E_CAST( 9,k,r,l,+,^,-);
	E_CAST(10,k,l,r,^,-,+);
	E_CAST(11,k,r,l,-,+,^);
	E_CAST(12,k,l,r,+,^,-);
	E_CAST(13,k,r,l,^,-,+);
	E_CAST(14,k,l,r,-,+,^);
	E_CAST(15,k,r,l,+,^,-);

	data[1]=l&0xffffffffL;
	data[0]=r&0xffffffffL;
	}

void CAST_decrypt(data,key)
CAST_LONG *data;
CAST_KEY *key;
	{
	register CAST_LONG l,r,*k,t;

	k= &(key->data[0]);
	l=data[0];
	r=data[1];

	E_CAST(15,k,l,r,+,^,-);
	E_CAST(14,k,r,l,-,+,^);
	E_CAST(13,k,l,r,^,-,+);
	E_CAST(12,k,r,l,+,^,-);
	E_CAST(11,k,l,r,-,+,^);
	E_CAST(10,k,r,l,^,-,+);
	E_CAST( 9,k,l,r,+,^,-);
	E_CAST( 8,k,r,l,-,+,^);
	E_CAST( 7,k,l,r,^,-,+);
	E_CAST( 6,k,r,l,+,^,-);
	E_CAST( 5,k,l,r,-,+,^);
	E_CAST( 4,k,r,l,^,-,+);
	E_CAST( 3,k,l,r,+,^,-);
	E_CAST( 2,k,r,l,-,+,^);
	E_CAST( 1,k,l,r,^,-,+);
	E_CAST( 0,k,r,l,+,^,-);

	data[1]=l&0xffffffffL;
	data[0]=r&0xffffffffL;
	}

void CAST_cbc_encrypt(in, out, length, ks, iv, encrypt)
unsigned char *in;
unsigned char *out;
long length;
CAST_KEY *ks;
unsigned char *iv;
int encrypt;
	{
	register CAST_LONG tin0,tin1;
	register CAST_LONG tout0,tout1,xor0,xor1;
	register long l=length;
	CAST_LONG tin[2];

	if (encrypt)
		{
		n2l(iv,tout0);
		n2l(iv,tout1);
		iv-=8;
		for (l-=8; l>=0; l-=8)
			{
			n2l(in,tin0);
			n2l(in,tin1);
			tin0^=tout0;
			tin1^=tout1;
			tin[0]=tin0;
			tin[1]=tin1;
			CAST_encrypt(tin,ks);
			tout0=tin[0];
			tout1=tin[1];
			l2n(tout0,out);
			l2n(tout1,out);
			}
		if (l != -8)
			{
			n2ln(in,tin0,tin1,l+8);
			tin0^=tout0;
			tin1^=tout1;
			tin[0]=tin0;
			tin[1]=tin1;
			CAST_encrypt(tin,ks);
			tout0=tin[0];
			tout1=tin[1];
			l2n(tout0,out);
			l2n(tout1,out);
			}
		l2n(tout0,iv);
		l2n(tout1,iv);
		}
	else
		{
		n2l(iv,xor0);
		n2l(iv,xor1);
		iv-=8;
		for (l-=8; l>=0; l-=8)
			{
			n2l(in,tin0);
			n2l(in,tin1);
			tin[0]=tin0;
			tin[1]=tin1;
			CAST_decrypt(tin,ks);
			tout0=tin[0]^xor0;
			tout1=tin[1]^xor1;
			l2n(tout0,out);
			l2n(tout1,out);
			xor0=tin0;
			xor1=tin1;
			}
		if (l != -8)
			{
			n2l(in,tin0);
			n2l(in,tin1);
			tin[0]=tin0;
			tin[1]=tin1;
			CAST_decrypt(tin,ks);
			tout0=tin[0]^xor0;
			tout1=tin[1]^xor1;
			l2nn(tout0,tout1,out,l+8);
			xor0=tin0;
			xor1=tin1;
			}
		l2n(xor0,iv);
		l2n(xor1,iv);
		}
	tin0=tin1=tout0=tout1=xor0=xor1=0;
	tin[0]=tin[1]=0;
	}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本乱人伦aⅴ精品| 夜夜嗨av一区二区三区| 日韩国产精品大片| 国产福利91精品| 久久久久久久综合| 欧美日韩一区二区三区视频| 国产在线观看免费一区| 亚洲成av人影院| 亚洲欧美日韩一区| 久久综合av免费| 欧美日韩国产123区| av一二三不卡影片| 国产又粗又猛又爽又黄91精品| 亚洲午夜在线电影| 中文字幕免费不卡| 2欧美一区二区三区在线观看视频| 日本韩国一区二区| 99精品国产一区二区三区不卡| 一级特黄大欧美久久久| 日韩欧美第一区| 色噜噜狠狠一区二区三区果冻| 亚洲精品乱码久久久久| 极品少妇一区二区三区精品视频| 亚洲人123区| 91.com在线观看| 国产精品美女久久久久久久网站| 91日韩一区二区三区| 美女在线视频一区| 欧美国产精品v| 欧美男人的天堂一二区| 国产一区91精品张津瑜| 亚洲伦理在线免费看| 日韩精品一区二区三区视频播放| 成人黄色av网站在线| 午夜久久久久久久久久一区二区| 久久蜜桃一区二区| 欧美伊人久久大香线蕉综合69 | 在线视频国内自拍亚洲视频| 日韩国产一区二| 中文字幕免费不卡在线| 欧美精品三级在线观看| 白白色 亚洲乱淫| 精品在线你懂的| 亚洲成人av一区二区三区| 国产精品天干天干在观线| 69精品人人人人| 91视频一区二区| 国产一区高清在线| 视频一区二区国产| 一个色综合av| 综合亚洲深深色噜噜狠狠网站| 欧美成人video| 欧美日韩成人综合在线一区二区| 成人91在线观看| 国产精品538一区二区在线| 天天综合网 天天综合色| 中文字幕一区二区三区在线不卡| 精品免费一区二区三区| 欧美日韩一区二区不卡| 色悠久久久久综合欧美99| 国产69精品久久99不卡| 精品一区二区三区久久| 麻豆精品久久精品色综合| 亚洲成人精品一区| 亚洲最大成人网4388xx| 亚洲色图20p| 国产精品久久久久aaaa| 欧美激情一二三区| 国产片一区二区| 欧美激情中文字幕一区二区| 337p粉嫩大胆噜噜噜噜噜91av| 91精品一区二区三区在线观看| 欧美午夜精品免费| 在线免费观看一区| 亚洲高清免费视频| 欧美放荡的少妇| 国产女主播一区| 久久久夜色精品亚洲| 日韩欧美一区在线观看| 日韩欧美精品三级| 精品乱码亚洲一区二区不卡| 欧美一区二区精品在线| 日韩一区二区免费在线观看| 欧美人与z0zoxxxx视频| 欧美日韩精品欧美日韩精品一综合 | 91免费版在线| 91丨九色丨蝌蚪富婆spa| 91亚洲永久精品| 色呦呦国产精品| 欧美综合一区二区| 欧美一区二区在线观看| 日韩欧美中文字幕制服| 欧美tickling网站挠脚心| 久久理论电影网| 中文字幕中文字幕一区二区| 亚洲视频在线一区| 午夜亚洲福利老司机| 美女视频黄久久| 成人精品视频一区二区三区尤物| 成人开心网精品视频| 91久久线看在观草草青青| 欧美亚洲综合在线| 精品日本一线二线三线不卡| 国产日韩欧美精品综合| 综合亚洲深深色噜噜狠狠网站| 亚洲国产综合色| 国产久卡久卡久卡久卡视频精品| 粉嫩蜜臀av国产精品网站| 色婷婷av久久久久久久| 日韩欧美不卡一区| 中文成人综合网| 午夜精品久久久久久久99水蜜桃| 免费黄网站欧美| 99久久精品国产导航| 欧美日本韩国一区| 国产清纯白嫩初高生在线观看91 | 久久精品av麻豆的观看方式| 国产成人在线观看免费网站| 97超碰欧美中文字幕| 欧美一级二级三级乱码| 中文字幕一区在线| 美洲天堂一区二卡三卡四卡视频| 国产成人av电影在线| 欧美在线观看你懂的| 久久久久久一级片| 亚洲成人黄色小说| 成人午夜激情片| 日韩欧美美女一区二区三区| 亚洲视频一区二区在线| 精品一二三四区| 欧美性受xxxx黑人xyx性爽| 国产亚洲1区2区3区| 日韩精品91亚洲二区在线观看| 大尺度一区二区| 日韩精品中文字幕一区 | 欧美日韩视频在线第一区| 久久久久亚洲蜜桃| 日韩二区三区在线观看| 99免费精品在线观看| 欧美精品一区二区在线观看| 亚洲永久精品国产| 不卡电影一区二区三区| 精品电影一区二区三区| 午夜视频在线观看一区二区 | 国产亚洲一区二区三区四区| 丝袜a∨在线一区二区三区不卡| av在线一区二区| 国产日本亚洲高清| 久久99最新地址| 日韩欧美一级二级三级久久久| 一区二区三区在线免费视频| 不卡视频在线看| 中文字幕乱码久久午夜不卡 | 色综合久久久久综合体| 欧美国产精品中文字幕| 国产剧情一区在线| 欧美一区二区免费视频| 亚洲国产人成综合网站| 在线视频国产一区| 亚洲免费在线视频一区 二区| 夫妻av一区二区| 久久精品一区二区三区av| 精品一区二区三区免费| 日韩欧美国产电影| 精品一区二区在线视频| 欧美成人a∨高清免费观看| 日本欧美肥老太交大片| 91精品国产欧美一区二区18| 日韩在线一区二区三区| 欧美精选一区二区| 天天av天天翘天天综合网色鬼国产| 色婷婷av一区二区三区软件| 亚洲精品高清在线观看| 精品一区二区三区免费观看| 日韩欧美久久久| 国产精品中文欧美| 亚洲国产成人私人影院tom| 成人性视频免费网站| 自拍偷拍欧美精品| 色狠狠色噜噜噜综合网| 一区二区三区在线播| 欧美日韩精品一区二区| 日韩高清中文字幕一区| 欧美成人女星排行榜| 国产精品一二三区| 亚洲手机成人高清视频| 欧亚一区二区三区| 人人精品人人爱| 欧美精品一区二区三区一线天视频| 国产一区二区免费视频| 中文字幕欧美三区| 91蜜桃在线免费视频| 亚洲国产中文字幕在线视频综合 | 久久精品免费观看| 久久久国产综合精品女国产盗摄| 成人免费电影视频| 亚洲一区在线播放| 精品国产成人在线影院| 成人国产精品免费观看| 亚洲国产一区二区a毛片|