C# Class Delay.MD5Managed

MD5Managed: A HashAlgorithm implementation that acts as a thin wrapper around a C# translation of the MD5 reference implementation. The C code has been translated as closely as possible so that most of the original structure remains and comparisons between the two are straightforward.
Derived from the RSA Data Security, Inc. MD5 Message-Digest Algorithm. Specification: RFC1321 - The MD5 Message-Digest Algorithm http://www.faqs.org/rfcs/rfc1321.html Original license: 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.
Inheritance: System.Security.Cryptography.HashAlgorithm
Mostrar archivo Open project: pieceofsummer/TouchRemote

Private Properties

Property Type Description
Decode void
Encode void
F uint
FF void
G uint
GG void
H uint
HH void
I uint
II void
InitializeVariables void
MD5Final void
MD5Init void
MD5Managed System
MD5Transform void
MD5Update void
ROTATE_LEFT uint

Public Methods

Method Description
Initialize ( ) : void

Initializes internal state.

Protected Methods

Method Description
HashCore ( byte array, int ibStart, int cbSize ) : void

Updates the hash code with the data provided.

HashFinal ( ) : byte[]

Finalizes the hash code and returns it.

Private Methods

Method Description
Decode ( uint output, byte input, uint inputIndex, uint len ) : void
Encode ( byte output, uint input, uint len ) : void
F ( uint x, uint y, uint z ) : uint
FF ( uint &a, uint b, uint c, uint d, uint x, int s, uint ac ) : void
G ( uint x, uint y, uint z ) : uint
GG ( uint &a, uint b, uint c, uint d, uint x, int s, uint ac ) : void
H ( uint x, uint y, uint z ) : uint
HH ( uint &a, uint b, uint c, uint d, uint x, int s, uint ac ) : void
I ( uint x, uint y, uint z ) : uint
II ( uint &a, uint b, uint c, uint d, uint x, int s, uint ac ) : void
InitializeVariables ( ) : void

Initializes variables.

MD5Final ( byte digest, MD5_CTX context ) : void
MD5Init ( MD5_CTX context ) : void
MD5Managed ( ) : System
MD5Transform ( uint state, byte block, uint blockIndex ) : void
MD5Update ( MD5_CTX context, byte input, uint inputIndex, uint inputLen ) : void
ROTATE_LEFT ( uint x, int n ) : uint

Method Details

HashCore() protected method

Updates the hash code with the data provided.
protected HashCore ( byte array, int ibStart, int cbSize ) : void
array byte Data to hash.
ibStart int Start position.
cbSize int Number of bytes.
return void

HashFinal() protected method

Finalizes the hash code and returns it.
protected HashFinal ( ) : byte[]
return byte[]

Initialize() public method

Initializes internal state.
public Initialize ( ) : void
return void