Table of Contents

CreateCrc32 Method

Definition

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

CreateCrc32(uint, uint, uint, Action<CyclicRedundancyCheckOptions>)

Creates an instance of CyclicRedundancyCheck32 from the specified arguments.

public static Hash CreateCrc32(uint polynomial, uint initialValue, uint finalXor, Action<CyclicRedundancyCheckOptions> setup = null)

Parameters

polynomial uint

This is a binary value that should be specified as a hexadecimal number.

initialValue uint

This parameter specifies the initial value of the register when the algorithm starts.

finalXor uint

This is an W-bit value that should be specified as a hexadecimal number.

setup Action<CyclicRedundancyCheckOptions>

The CyclicRedundancyCheckOptions which may be configured.

Returns

Hash

A Hash implementation of CyclicRedundancyCheck32.

CreateCrc32()

Creates an instance of CyclicRedundancyCheck32 using Crc32.

public static Hash CreateCrc32()

Returns

Hash

A Hash implementation of CyclicRedundancyCheck32.