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

Inheritance: System.Security.Cryptography.HashAlgorithm
Afficher le fichier Open project: nHydrate/nHydrate Class Usage Examples

Protected Properties

Свойство Type Description
AllOnes uint
autoCache bool
cachedCRC32Tables System.Collections.Hashtable
crc32Table uint[]

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
BuildCRC32Table ( uint ulPolynomial ) : uint[]

Builds a crc32 table given a polynomial

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

HashFinal ( ) : byte[]

Private Methods

Méthode Description
CRC32HashAlgorithm ( ) : System.Collections

Initialize the cache

Method Details

BuildCRC32Table() protected static méthode

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

CRC32HashAlgorithm() public méthode

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

CRC32HashAlgorithm() public méthode

Construct the
public CRC32HashAlgorithm ( uint aPolynomial, bool cacheTable ) : System.Collections
aPolynomial uint
cacheTable bool
Résultat System.Collections

ClearCache() public static méthode

public static ClearCache ( ) : void
Résultat void

ComputeHash() public méthode

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

ComputeHash() public méthode

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

ComputeHash() public méthode

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

ComputeHash() public méthode

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

HashCore() protected méthode

protected HashCore ( byte buffer, int offset, int count ) : void
buffer byte
offset int
count int
Résultat void

HashFinal() protected méthode

protected HashFinal ( ) : byte[]
Résultat byte[]

Initialize() public méthode

Initializes an implementation of HashAlgorithm.
public Initialize ( ) : void
Résultat void

Property Details

AllOnes protected_oe static_oe property

protected static uint AllOnes
Résultat uint

autoCache protected_oe static_oe property

protected static bool autoCache
Résultat bool

cachedCRC32Tables protected_oe static_oe property

protected static Hashtable,System.Collections cachedCRC32Tables
Résultat System.Collections.Hashtable

crc32Table protected_oe property

protected uint[] crc32Table
Résultat uint[]