C# Class Cryptid.Crypto.Crc32

This class is for the CRC32 hashing algorithm
Inheritance: System.Security.Cryptography.HashAlgorithm
Exibir arquivo Open project: CryptidID/Cryptid

Public Methods

Method Description
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
Initialize ( ) : void

Protected Methods

Method Description
HashCore ( byte array, int ibStart, int cbSize ) : void
HashFinal ( ) : byte[]

Private Methods

Method Description
CalculateHash ( uint table, uint seed, IList buffer, int start, int size ) : uint
InitializeTable ( uint polynomial ) : uint[]
UInt32ToBigEndianBytes ( uint uint32 ) : byte[]

Method Details

Compute() public static method

public static Compute ( byte buffer ) : uint
buffer byte
return uint

Compute() public static method

public static Compute ( uint seed, byte buffer ) : uint
seed uint
buffer byte
return uint

Compute() public static method

public static Compute ( uint polynomial, uint seed, byte buffer ) : uint
polynomial uint
seed uint
buffer byte
return uint

Crc32() public method

public Crc32 ( ) : System
return System

Crc32() public method

public Crc32 ( uint polynomial, uint seed ) : System
polynomial uint
seed uint
return System

HashCore() protected method

protected HashCore ( byte array, int ibStart, int cbSize ) : void
array byte
ibStart int
cbSize int
return void

HashFinal() protected method

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

Initialize() public method

public Initialize ( ) : void
return void