C# Class Enyim.TigerHash

Implements the Tiger hash. (http://www.cs.technion.ac.il/~biham/Reports/Tiger/) Ported (and cleaned&sped up) from the Tiger.NET VB code. (http://www.hotpixel.net/software.html)
Inheritance: System.Security.Cryptography.HashAlgorithm
显示文件 Open project: xianrendzw/LightFramework.Net Class Usage Examples

Public Methods

Method Description
Initialize ( ) : void

Initializes an instance of T:TigerHash.

TigerHash ( ) : System

Initializes a new instance of the T:TigerHash class.

Protected Methods

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

Routes data written to the object into the T:TigerHash hash algorithm for computing the hash.

HashFinal ( ) : byte[]

Returns the computed T:TigerHash hash value after all data has been written to the object.

Private Methods

Method Description
Compress ( ) : void
LongToBytes ( ulong value, byte buffer, int offset ) : void
ProcessBlock ( ) : void
RoundABC ( ulong x, uint mul ) : void
RoundBCA ( ulong x, uint mul ) : void
RoundCAB ( ulong x, uint mul ) : void
Schedule ( ulong x ) : void

Method Details

HashCore() protected method

Routes data written to the object into the T:TigerHash hash algorithm for computing the hash.
protected HashCore ( byte array, int ibStart, int cbSize ) : void
array byte The input data.
ibStart int The offset into the byte array from which to begin using data.
cbSize int The number of bytes in the array to use as data.
return void

HashFinal() protected method

Returns the computed T:TigerHash hash value after all data has been written to the object.
protected HashFinal ( ) : byte[]
return byte[]

Initialize() public method

Initializes an instance of T:TigerHash.
public Initialize ( ) : void
return void

TigerHash() public method

Initializes a new instance of the T:TigerHash class.
public TigerHash ( ) : System
return System