C# Класс Classless.Hasher.CRC

Computes the CRC hash for the input data using the managed library.
Наследование: System.Security.Cryptography.HashAlgorithm
Показать файл Открыть проект

Открытые методы

Метод Описание
CRC ( CRCParameters param ) : System

Initializes a new instance of the CRC class.

Initialize ( ) : void

Initializes the algorithm.

Защищенные методы

Метод Описание
HashCore ( byte array, int ibStart, int cbSize ) : void

Drives the hashing function.

HashFinal ( ) : byte[]

Performs any final activities required by the hash algorithm.

Приватные методы

Метод Описание
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.

Описание методов

CRC() публичный Метод

Initializes a new instance of the CRC class.
public CRC ( CRCParameters param ) : System
param CRCParameters The parameters to utilize in the CRC calculation.
Результат System

HashCore() защищенный Метод

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.
Результат void

HashFinal() защищенный Метод

Performs any final activities required by the hash algorithm.
protected HashFinal ( ) : byte[]
Результат byte[]

Initialize() публичный Метод

Initializes the algorithm.
public Initialize ( ) : void
Результат void