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

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

?? md5checksum.cpp

?? 通用SP及網關使用
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
// MD5Checksum.cpp: implementation of the MD5Checksum class.
//
//////////////////////////////////////////////////////////////////////


/****************************************************************************************
This software is derived from the RSA Data Security, Inc. MD5 Message-Digest Algorithm. 
Incorporation of this statement is a condition of use; please see the RSA
Data Security Inc copyright notice below:-

Copyright (C) 1990-2, RSA Data Security, Inc. Created 1990. All
rights reserved.

RSA Data Security, Inc. makes no representations concerning either
the merchantability of this software or the suitability of this
software for any particular purpose. It is provided "as is"
without express or implied warranty of any kind.

These notices must be retained in any copies of any part of this
documentation and/or software.

Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
rights reserved.
License to copy and use this software is granted provided that it
is identified as the "RSA Data Security, Inc. MD5 Message-Digest
Algorithm" in all material mentioning or referencing this software
or this function.
License is also granted to make and use derivative works provided
that such works are identified as "derived from the RSA Data
Security, Inc. MD5 Message-Digest Algorithm" in all material
mentioning or referencing the derived work.
RSA Data Security, Inc. makes no representations concerning either
the merchantability of this software or the suitability of this
software for any particular purpose. It is provided "as is"
without express or implied warranty of any kind.

These notices must be retained in any copies of any part of this
documentation and/or software.
*****************************************************************************************/

/****************************************************************************************
This implementation of the RSA MD5 Algorithm was written by Langfine Ltd 
(www.langfine.com).

Langfine Ltd makes no representations concerning either
the merchantability of this software or the suitability of this
software for any particular purpose. It is provided "as is"
without express or implied warranty of any kind.

In addition to the above, Langfine make no warrant or assurances regarding the 
accuracy of this implementation of the MD5 checksum algorithm nor any assurances regarding
its suitability for any purposes.

This implementation may be used freely provided that Langfine is credited
in a copyright or similar notices (eg, RSA MD5 Algorithm implemented by Langfine
Ltd.) and provided that the RSA Data Security notices are complied with.
*/
#include "stdafx.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "MD5Checksum.h"


/*****************************************************************************************
FUNCTION:		CMD5Checksum::GetMD5
DETAILS:		static, public
DESCRIPTION:	Gets the MD5 checksum for data in a BYTE array
RETURNS:		CString : the hexadecimal MD5 checksum for the specified data
ARGUMENTS:		BYTE* pBuf  :	pointer to the BYTE array
				UINT nLength :	number of BYTEs of data to be checksumed
NOTES:			Provides an interface to the CMD5Checksum class. Any data that can
				be cast to a BYTE array of known length can be checksummed by this
				function. Typically, CString and char arrays will be checksumed, 
				although this function can be used to check the integrity of any BYTE array. 
				A buffer of zero length can be checksummed; all buffers of zero length 
				will return the same checksum. 
*****************************************************************************************/
void CMD5Checksum::GetMD5(BYTE* pBuf, UINT nLength, BYTE *pMD5)
{

	//calculate and return the checksum
	CMD5Checksum MD5Checksum;
	MD5Checksum.Update( pBuf, nLength );
	MD5Checksum.Final(pMD5);
}


/*****************************************************************************************
FUNCTION:		CMD5Checksum::RotateLeft
DETAILS:		private
DESCRIPTION:	Rotates the bits in a 32 bit DWORD left by a specified amount
RETURNS:		The rotated DWORD 
ARGUMENTS:		DWORD x : the value to be rotated
				int n   : the number of bits to rotate by
*****************************************************************************************/
DWORD CMD5Checksum::RotateLeft(DWORD x, int n)
{
	//check that DWORD is 4 bytes long - true in Visual C++ 6 and 32 bit Windows

	//rotate and return x
	return (x << n) | (x >> (32-n));
}


/*****************************************************************************************
FUNCTION:		CMD5Checksum::FF
DETAILS:		protected
DESCRIPTION:	Implementation of basic MD5 transformation algorithm
RETURNS:		none
ARGUMENTS:		DWORD &A, B, C, D : Current (partial) checksum
				DWORD X           : Input data
				DWORD S			  : MD5_SXX Transformation constant
				DWORD T			  :	MD5_TXX Transformation constant
NOTES:			None
*****************************************************************************************/
void CMD5Checksum::FF( DWORD& A, DWORD B, DWORD C, DWORD D, DWORD X, DWORD S, DWORD T)
{
	DWORD F = (B & C) | (~B & D);
	A += F + X + T;
	A = RotateLeft(A, S);
	A += B;
}


/*****************************************************************************************
FUNCTION:		CMD5Checksum::GG
DETAILS:		protected
DESCRIPTION:	Implementation of basic MD5 transformation algorithm
RETURNS:		none
ARGUMENTS:		DWORD &A, B, C, D : Current (partial) checksum
				DWORD X           : Input data
				DWORD S			  : MD5_SXX Transformation constant
				DWORD T			  :	MD5_TXX Transformation constant
NOTES:			None
*****************************************************************************************/
void CMD5Checksum::GG( DWORD& A, DWORD B, DWORD C, DWORD D, DWORD X, DWORD S, DWORD T)
{
	DWORD G = (B & D) | (C & ~D);
	A += G + X + T;
	A = RotateLeft(A, S);
	A += B;
}


/*****************************************************************************************
FUNCTION:		CMD5Checksum::HH
DETAILS:		protected
DESCRIPTION:	Implementation of basic MD5 transformation algorithm
RETURNS:		none
ARGUMENTS:		DWORD &A, B, C, D : Current (partial) checksum
				DWORD X           : Input data
				DWORD S			  : MD5_SXX Transformation constant
				DWORD T			  :	MD5_TXX Transformation constant
NOTES:			None
*****************************************************************************************/
void CMD5Checksum::HH( DWORD& A, DWORD B, DWORD C, DWORD D, DWORD X, DWORD S, DWORD T)
{
	DWORD H = (B ^ C ^ D);
	A += H + X + T;
	A = RotateLeft(A, S);
	A += B;
}


/*****************************************************************************************
FUNCTION:		CMD5Checksum::II
DETAILS:		protected
DESCRIPTION:	Implementation of basic MD5 transformation algorithm
RETURNS:		none
ARGUMENTS:		DWORD &A, B, C, D : Current (partial) checksum
				DWORD X           : Input data
				DWORD S			  : MD5_SXX Transformation constant
				DWORD T			  :	MD5_TXX Transformation constant
NOTES:			None
*****************************************************************************************/
void CMD5Checksum::II( DWORD& A, DWORD B, DWORD C, DWORD D, DWORD X, DWORD S, DWORD T)
{
	DWORD I = (C ^ (B | ~D));
	A += I + X + T;
	A = RotateLeft(A, S);
	A += B;
}


/*****************************************************************************************
FUNCTION:		CMD5Checksum::ByteToDWord
DETAILS:		private
DESCRIPTION:	Transfers the data in an 8 bit array to a 32 bit array
RETURNS:		void
ARGUMENTS:		DWORD* Output : the 32 bit (unsigned long) destination array 
				BYTE* Input	  : the 8 bit (unsigned char) source array
				UINT nLength  : the number of 8 bit data items in the source array
NOTES:			Four BYTES from the input array are transferred to each DWORD entry
				of the output array. The first BYTE is transferred to the bits (0-7) 
				of the output DWORD, the second BYTE to bits 8-15 etc. 
				The algorithm assumes that the input array is a multiple of 4 bytes long
				so that there is a perfect fit into the array of 32 bit words.
*****************************************************************************************/
void CMD5Checksum::ByteToDWord(DWORD* Output, BYTE* Input, UINT nLength)
{
	//entry invariants

	//initialisations
	UINT i=0;	//index to Output array
	UINT j=0;	//index to Input array

	//transfer the data by shifting and copying
	for ( ; j < nLength; i++, j += 4)
	{
		Output[i] = (ULONG)Input[j]			| 
					(ULONG)Input[j+1] << 8	| 
					(ULONG)Input[j+2] << 16 | 
					(ULONG)Input[j+3] << 24;
	}
}

/*****************************************************************************************
FUNCTION:		CMD5Checksum::Transform
DETAILS:		protected
DESCRIPTION:	MD5 basic transformation algorithm;  transforms 'm_lMD5'
RETURNS:		void
ARGUMENTS:		BYTE Block[64]
NOTES:			An MD5 checksum is calculated by four rounds of 'Transformation'.
				The MD5 checksum currently held in m_lMD5 is merged by the 
				transformation process with data passed in 'Block'.  
*****************************************************************************************/
void CMD5Checksum::Transform(BYTE Block[64])
{
	//initialise local data with current checksum
	ULONG a = m_lMD5[0];
	ULONG b = m_lMD5[1];
	ULONG c = m_lMD5[2];
	ULONG d = m_lMD5[3];

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国模无码大尺度一区二区三区| www.亚洲色图.com| www.性欧美| 51精品秘密在线观看| 中文字幕一区av| 久久国产剧场电影| 欧美日韩国产电影| 亚洲综合色婷婷| 成人免费视频一区| 久久久久久影视| 免费观看日韩电影| 欧美精品国产精品| 亚洲国产一区视频| 色综合久久综合| 中文字幕欧美日韩一区| 激情久久久久久久久久久久久久久久| 欧美图区在线视频| 亚洲激情图片一区| 成人h动漫精品一区二区| 久久久亚洲精品一区二区三区| 日本va欧美va瓶| 欧美日韩免费电影| 亚洲国产欧美一区二区三区丁香婷| 成人精品视频一区二区三区| 久久综合九色综合欧美就去吻| 亚洲v中文字幕| 欧美亚洲高清一区| 亚洲精品免费在线播放| 波多野结衣亚洲一区| 国产色产综合产在线视频| 国产在线播放一区| 精品国产伦一区二区三区观看体验 | 亚洲地区一二三色| 欧美日韩视频专区在线播放| 亚洲欧洲综合另类| 91成人在线精品| 亚洲高清视频中文字幕| 欧美日韩一区二区三区不卡| 亚洲一级在线观看| 91精品婷婷国产综合久久性色| 五月开心婷婷久久| 日韩欧美中文一区| 激情欧美一区二区三区在线观看| 欧美精品一区二区三区一线天视频| 精品中文字幕一区二区| 国产亚洲成av人在线观看导航| 国产成人一区在线| 亚洲色欲色欲www| 在线观看亚洲a| 日本亚洲天堂网| 久久综合色婷婷| 成人精品小蝌蚪| 亚洲午夜在线观看视频在线| 日韩视频免费观看高清完整版| 久久99久久久久久久久久久| 国产三区在线成人av| 91麻豆免费看| 免费在线观看视频一区| 国产日韩欧美一区二区三区综合| 成人午夜伦理影院| 亚洲成人免费在线观看| 欧美大片在线观看| 成人高清视频在线| 午夜精品福利久久久| 久久综合九色综合欧美98| 播五月开心婷婷综合| 婷婷丁香久久五月婷婷| 久久精品一区蜜桃臀影院| 色婷婷综合久久| 久久机这里只有精品| 亚洲视频一区二区免费在线观看| 欧美日韩一级大片网址| 激情偷乱视频一区二区三区| 亚洲精品视频自拍| 久久久久青草大香线综合精品| 一本到不卡免费一区二区| 久久国产精品露脸对白| 亚洲丝袜另类动漫二区| 久久免费美女视频| 欧洲生活片亚洲生活在线观看| 狠狠色丁香婷综合久久| 亚洲一区精品在线| 国产精品萝li| 精品美女一区二区| 欧美日本一道本在线视频| 99国产精品久久久久久久久久久| 蜜臀久久99精品久久久久久9| 亚洲人成影院在线观看| 国产亚洲精品bt天堂精选| 欧美美女激情18p| 色综合久久中文字幕综合网| 国产寡妇亲子伦一区二区| 国产电影一区二区三区| 亚洲一区二区在线免费看| 中文在线资源观看网站视频免费不卡| 欧美一区二区三区小说| 色欧美片视频在线观看| 波多野结衣中文字幕一区 | 国产精品白丝在线| 欧美精品一区二区高清在线观看| 欧美日韩另类一区| 91精品福利视频| 99免费精品在线观看| 高清不卡一区二区| 国产综合一区二区| 国产一区亚洲一区| 极品销魂美女一区二区三区| 日韩经典中文字幕一区| 亚洲www啪成人一区二区麻豆| 一区二区三区在线观看国产| 亚洲视频一区在线| 中文字幕日本不卡| 亚洲欧美日韩国产一区二区三区| 国产免费观看久久| 国产精品亲子伦对白| 国产精品美女一区二区在线观看| 国产偷国产偷精品高清尤物| 久久久久久久免费视频了| 精品久久久久久最新网址| 亚洲精品在线观| 国产亚洲婷婷免费| 国产精品久久久久久久浪潮网站 | 欧美中文字幕一区二区三区亚洲| 91在线视频网址| 日本韩国视频一区二区| 欧美色国产精品| 欧美一区二区三区爱爱| 欧美mv日韩mv国产网站app| 欧美成人伊人久久综合网| 久久这里只有精品6| 国产农村妇女精品| 亚洲日韩欧美一区二区在线| 一区二区三区影院| 日本在线不卡一区| 国产美女精品一区二区三区| 成人av影院在线| 日本高清成人免费播放| 制服视频三区第一页精品| 国产精品人成在线观看免费| 亚洲视频中文字幕| 日本亚洲欧美天堂免费| 国产一区二区三区在线观看免费视频| 高清日韩电视剧大全免费| 91小视频在线观看| 91精品国产麻豆国产自产在线 | 日本黄色一区二区| 欧美一区二区三区免费视频 | 韩国女主播一区| av在线不卡电影| 91精品欧美一区二区三区综合在| 欧美精品一区二区三区蜜桃| 亚洲日本va在线观看| 日本aⅴ免费视频一区二区三区 | 奇米色777欧美一区二区| 国产成人啪午夜精品网站男同| 91久久香蕉国产日韩欧美9色| 欧美一级一区二区| 自拍偷拍欧美精品| 青青青伊人色综合久久| jvid福利写真一区二区三区| 777欧美精品| 亚洲美女区一区| 国产一区二区成人久久免费影院 | 高清国产午夜精品久久久久久| 在线日韩av片| 日本一区二区不卡视频| 欧美aa在线视频| 在线亚洲高清视频| 国产精品久久久久久久久动漫| 日韩激情一二三区| 91麻豆国产福利在线观看| 精品国产露脸精彩对白| 三级不卡在线观看| 91久久一区二区| 国产精品福利电影一区二区三区四区 | 欧美日韩视频在线一区二区| 国产欧美精品一区| 久久精品国产亚洲高清剧情介绍| 在线影视一区二区三区| 中文字幕一区免费在线观看 | 精品国产伦一区二区三区免费| 亚洲图片欧美色图| 日本精品一级二级| 国产精品乱人伦中文| 精品亚洲成a人在线观看| 在线播放/欧美激情| 亚洲bt欧美bt精品777| 色婷婷久久综合| 亚洲天堂成人在线观看| 不卡一区二区三区四区| 日本一区二区三区电影| 国产一区日韩二区欧美三区| 欧美va亚洲va| 美女国产一区二区三区| 日韩一区二区三区av| 日韩av电影免费观看高清完整版在线观看| 欧美综合久久久| 亚洲国产精品天堂| 欧美视频一区二区三区在线观看| 樱花草国产18久久久久|