C# Class Classless.Hasher.CRC

Computes the CRC hash for the input data using the managed library.
Inheritance: System.Security.Cryptography.HashAlgorithm
Afficher le fichier Open project: codebutler/meshwork

Méthodes publiques

Méthode Description
CRC ( CRCParameters param ) : System

Initializes a new instance of the CRC class.

Initialize ( ) : void

Initializes the algorithm.

Méthodes protégées

Méthode Description
HashCore ( byte array, int ibStart, int cbSize ) : void

Drives the hashing function.

HashFinal ( ) : byte[]

Performs any final activities required by the hash algorithm.

Private Methods

Méthode Description
BuildLookup ( CRCParameters param ) : void

Build the CRC lookup table for a given polynomial.

CRC ( ) : System
Reflect ( long data, int numBits ) : long

Reflects the lower bits of the value provided.

Method Details

CRC() public méthode

Initializes a new instance of the CRC class.
public CRC ( CRCParameters param ) : System
param CRCParameters The parameters to utilize in the CRC calculation.
Résultat System

HashCore() protected méthode

Drives the hashing function.
protected HashCore ( byte array, int ibStart, int cbSize ) : void
array byte The array containing the data.
ibStart int The position in the array to begin reading from.
cbSize int How many bytes in the array to read.
Résultat void

HashFinal() protected méthode

Performs any final activities required by the hash algorithm.
protected HashFinal ( ) : byte[]
Résultat byte[]

Initialize() public méthode

Initializes the algorithm.
public Initialize ( ) : void
Résultat void