Table of Contents

CreateCrc Method

Definition

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

CreateCrc(CyclicRedundancyCheckAlgorithm)

Creates an instance of a cyclic redundancy check implementation that derives from CyclicRedundancyCheck with the specified algorithm. Default is CyclicRedundancyCheck32 using Crc32.

public static Hash CreateCrc(CyclicRedundancyCheckAlgorithm algorithm = CyclicRedundancyCheckAlgorithm.Crc32)

Parameters

algorithm CyclicRedundancyCheckAlgorithm

The CyclicRedundancyCheckAlgorithm that defines the cyclic redundancy check implementation. Default is Crc32.

Returns

Hash

A Hash implementation of the by parameter specified algorithm.