Table of Contents

CyclicRedundancyCheck Class

Definition

Namespace
Cuemon.Security
Assemblies
Cuemon.Core.dll
Source
src/Cuemon.Core/Security/CyclicRedundancyCheck.cs

Represents the base class from which all implementations of the CRC (Cyclic Redundancy Check) checksum algorithm must derive.

public abstract class CyclicRedundancyCheck : Hash<CyclicRedundancyCheckOptions>, IHash, IConfigurable<CyclicRedundancyCheckOptions>
Inheritance
CyclicRedundancyCheck
Implements
Derived
Inherited Members

Remarks

Help and inspiration was gathered @ http://www.ross.net/crc/download/crc_v3.txt

Constructors

Name Description
CyclicRedundancyCheck(ulong, ulong, ulong, Action<CyclicRedundancyCheckOptions>)

Initializes a new instance of the CyclicRedundancyCheck class.

Properties

Name Description
FinalXor

Gets the CRC final value that is XORed to the final register value.

InitialValue

Gets the CRC initial value of the register.

LookupTable

Gets the lookup table containing the pre-computed polynomial values.

Methods

Name Description
PolynomialIndexInitializer(byte)

Returns the initial value for the specified index of the polynomial LookupTable.

PolynomialSlotCalculator(ref ulong, ulong)

Computes the polynomial checksum value in steps of 8 (0-7) x 256 (0-255) giving a total of 2048 times.