cocos2d-x 文件MD5校验(5)
来源:未知 责任编辑:责任编辑 发表时间:2013-11-15 19:49 点击:次
p> ASSERT( sizeof(x) == 4 );
p>
p> //rotate and return x
p> return (x << n) | (x >> (32-n));
p>}
p>
p>
p>/*****************************************************************************************
p> FUNCTION: CMD5Checksum::FF
p> DETAILS: protected
p> DESCRIPTION: Implementation of basic MD5 transformation algorithm
p> RETURNS: none
p> ARGUMENTS: DWORD &A, B, C, D : Current (partial) checksum
p> DWORD X : Input data
p> DWORD S : MD5_SXX Transformation constant
p> DWORD T : MD5_TXX Transformation constant
p> NOTES: None
p> *****************************************************************************************/
p>void CMD5Checksum::FF( DWORD& A, DWORD B, DWORD C, DWORD D, DWORD X, DWORD S, DWORD T)
p>{
p> DWORD F = (B & C) | (~B & D);
p> A += F + X + T;
p> A = RotateLeft(A, S);
p> A += B;
p>}
p>
p>
p>/*****************************************************************************************
p> FUNCTION: CMD5Checksum::GG
p> DETAILS: protected
p> DESCRIPTION: Implementation of basic MD5 transformation algorithm
p> RETURNS: none
p> ARGUMENTS: DWORD &A, B, C, D : Current (partial) checksum
p> DWORD X : Input data
p> DWORD S : MD5_SXX Transformation constant
p> DWORD T : MD5_TXX Transformation constant
p> NOTES: None
p> *****************************************************************************************/
p>void CMD5Checksum::GG( DWORD& A, DWORD B, DWORD C, DWORD D, DWORD X, DWORD S, DWORD T)
p>{
p> DWORD G = (B & D) | (C & ~D);
p> A += G + X + T;
p> A = RotateLeft(A, S);
p> A += B;
p>}
p>
p>
p>/*****************************************************************************************
p> FUNCTION: CMD5Checksum::HH
p> DETAILS: protected
p> DESCRIPTION: Implementation of basic MD5 transformation algorithm
p> RETURNS: none
p> ARGUMENTS: DWORD &A, B, C, D : Current (partial) checksum
p> DWORD X : Input data
p> DWORD S : MD5_SXX Transformation constant
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>