C# Class Enyim.FNV1

Implements an FNV1 hash algorithm.
Inheritance: System.Security.Cryptography.HashAlgorithm, IUIntHashAlgorithm
显示文件 Open project: xianrendzw/LightFramework.Net

Protected Properties

Property Type Description
CurrentHashValue uint

Public Methods

Method Description
FNV1 ( ) : System

Initializes a new instance of the T:FNV1a class.

Initialize ( ) : void

Initializes an instance of T:FNV1a.

Protected Methods

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

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

HashFinal ( ) : byte[]

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

Private Methods

Method Description
IUIntHashAlgorithm ( byte data ) : uint

Method Details

FNV1() public method

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

HashCore() protected method

Routes data written to the object into the T:FNV1a 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:FNV1a hash value after all data has been written to the object.
protected HashFinal ( ) : byte[]
return byte[]

Initialize() public method

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

Property Details

CurrentHashValue protected_oe property

The current hash value.
protected uint CurrentHashValue
return uint