C# Class nHydrate.Generator.Common.Util.CRC32HashAlgorithm

Inheritance: System.Security.Cryptography.HashAlgorithm
Mostra file Open project: nHydrate/nHydrate Class Usage Examples

Protected Properties

Property Type Description
AllOnes uint
autoCache bool
cachedCRC32Tables System.Collections.Hashtable
crc32Table uint[]

Public Methods

Method Description
CRC32HashAlgorithm ( uint aPolynomial ) : System.Collections

Creates a CRC32HashAlgorithm object using the specified Creates a CRC32HashAlgorithm object

CRC32HashAlgorithm ( uint aPolynomial, bool cacheTable ) : System.Collections

Construct the

ClearCache ( ) : void
ComputeHash ( Stream inputStream ) : byte[]

Computes the hash value for the specified Stream.

ComputeHash ( byte buffer ) : byte[]

Overloaded. Computes the hash value for the input data.

ComputeHash ( byte buffer, int offset, int count ) : byte[]

Overloaded. Computes the hash value for the input data.

ComputeHash ( string s ) : byte[]

Overloaded. Computes the hash value for the input data.

Initialize ( ) : void

Initializes an implementation of HashAlgorithm.

Protected Methods

Method Description
BuildCRC32Table ( uint ulPolynomial ) : uint[]

Builds a crc32 table given a polynomial

HashCore ( byte buffer, int offset, int count ) : void

HashFinal ( ) : byte[]

Private Methods

Method Description
CRC32HashAlgorithm ( ) : System.Collections

Initialize the cache

Method Details

BuildCRC32Table() protected static method

Builds a crc32 table given a polynomial
protected static BuildCRC32Table ( uint ulPolynomial ) : uint[]
ulPolynomial uint
return uint[]

CRC32HashAlgorithm() public method

Creates a CRC32HashAlgorithm object using the specified Creates a CRC32HashAlgorithm object
public CRC32HashAlgorithm ( uint aPolynomial ) : System.Collections
aPolynomial uint
return System.Collections

CRC32HashAlgorithm() public method

Construct the
public CRC32HashAlgorithm ( uint aPolynomial, bool cacheTable ) : System.Collections
aPolynomial uint
cacheTable bool
return System.Collections

ClearCache() public static method

public static ClearCache ( ) : void
return void

ComputeHash() public method

Computes the hash value for the specified Stream.
public ComputeHash ( Stream inputStream ) : byte[]
inputStream System.IO.Stream
return byte[]

ComputeHash() public method

Overloaded. Computes the hash value for the input data.
public ComputeHash ( byte buffer ) : byte[]
buffer byte
return byte[]

ComputeHash() public method

Overloaded. Computes the hash value for the input data.
public ComputeHash ( byte buffer, int offset, int count ) : byte[]
buffer byte
offset int
count int
return byte[]

ComputeHash() public method

Overloaded. Computes the hash value for the input data.
public ComputeHash ( string s ) : byte[]
s string
return byte[]

HashCore() protected method

protected HashCore ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
return void

HashFinal() protected method

protected HashFinal ( ) : byte[]
return byte[]

Initialize() public method

Initializes an implementation of HashAlgorithm.
public Initialize ( ) : void
return void

Property Details

AllOnes protected_oe static_oe property

protected static uint AllOnes
return uint

autoCache protected_oe static_oe property

protected static bool autoCache
return bool

cachedCRC32Tables protected_oe static_oe property

protected static Hashtable,System.Collections cachedCRC32Tables
return System.Collections.Hashtable

crc32Table protected_oe property

protected uint[] crc32Table
return uint[]