C# Класс Hugula.Update.Crc32

Implements a 32-bit CRC hash algorithm compatible with Zip etc.
Crc32 should only be used for backward compatibility with older file formats and algorithms. It is not secure enough for new applications. If you need to call multiple times for the same data either use the HashAlgorithm interface or remember that the result of one Compute call needs to be ~ (XOR) before being passed in as the seed for the next Compute call.
Наследование: System.Security.Cryptography.HashAlgorithm
Показать файл Открыть проект

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

Метод Описание
Compute ( byte buffer ) : uint
Compute ( uint seed, byte buffer ) : uint
Compute ( uint polynomial, uint seed, byte buffer ) : uint
Crc32 ( ) : System
Crc32 ( uint polynomial, uint seed ) : System
GetHashResult ( ) : uint
Initialize ( ) : void

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

Метод Описание
HashCore ( byte buffer, int start, int length ) : void
HashFinal ( ) : byte[]

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

Метод Описание
CalculateHash ( uint table, uint seed, byte buffer, int start, int size ) : uint
InitializeTable ( uint polynomial ) : uint[]
UintToBigEndianBytes ( uint uint32 ) : byte[]

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

Compute() публичный статический Метод

public static Compute ( byte buffer ) : uint
buffer byte
Результат uint

Compute() публичный статический Метод

public static Compute ( uint seed, byte buffer ) : uint
seed uint
buffer byte
Результат uint

Compute() публичный статический Метод

public static Compute ( uint polynomial, uint seed, byte buffer ) : uint
polynomial uint
seed uint
buffer byte
Результат uint

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

public Crc32 ( ) : System
Результат System

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

public Crc32 ( uint polynomial, uint seed ) : System
polynomial uint
seed uint
Результат System

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

public GetHashResult ( ) : uint
Результат uint

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

protected HashCore ( byte buffer, int start, int length ) : void
buffer byte
start int
length int
Результат void

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

protected HashFinal ( ) : byte[]
Результат byte[]

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

public Initialize ( ) : void
Результат void