C# Class DamienG.Security.Cryptography.Crc64

Implements a 64-bit CRC hash algorithm for a given polynomial.
For ISO 3309 compliant 64-bit CRC's use Crc64Iso.
Inheritance: System.Security.Cryptography.HashAlgorithm
Afficher le fichier Open project: damieng/DamienGKit

Méthodes publiques

Méthode Description
Crc64 ( System.UInt64 polynomial ) : System
Crc64 ( System.UInt64 polynomial, System.UInt64 seed ) : System
Initialize ( ) : void

Méthodes protégées

Méthode Description
CalculateHash ( System.UInt64 seed, System.UInt64 table, IList buffer, int start, int size ) : System.UInt64
CreateTable ( ulong polynomial ) : ulong[]
HashCore ( byte array, int ibStart, int cbSize ) : void
HashFinal ( ) : byte[]

Private Methods

Méthode Description
InitializeTable ( System.UInt64 polynomial ) : System.UInt64[]
UInt64ToBigEndianBytes ( System.UInt64 value ) : byte[]

Method Details

CalculateHash() protected static méthode

protected static CalculateHash ( System.UInt64 seed, System.UInt64 table, IList buffer, int start, int size ) : System.UInt64
seed System.UInt64
table System.UInt64
buffer IList
start int
size int
Résultat System.UInt64

Crc64() public méthode

public Crc64 ( System.UInt64 polynomial ) : System
polynomial System.UInt64
Résultat System

Crc64() public méthode

public Crc64 ( System.UInt64 polynomial, System.UInt64 seed ) : System
polynomial System.UInt64
seed System.UInt64
Résultat System

CreateTable() protected static méthode

protected static CreateTable ( ulong polynomial ) : ulong[]
polynomial ulong
Résultat ulong[]

HashCore() protected méthode

protected HashCore ( byte array, int ibStart, int cbSize ) : void
array byte
ibStart int
cbSize int
Résultat void

HashFinal() protected méthode

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

Initialize() public méthode

public Initialize ( ) : void
Résultat void