System.IO.Hashing.Crc32
Provides an implementation of the CRC-32 algorithm, as used in ITU-T V.42 and IEEE 802.3.
public Crc32()
Initializes a new instance of the Crc32 class.
Computes the CRC-32 hash of the provided data.
Computes the CRC-32 hash of the provided data.
Computes the CRC-32 hash of the provided data into the provided destination.
public static int Hash(Crc32ParameterSet parameterSet, ReadOnlySpan<byte> source, Span<byte> destination)
Computes the CRC-32 hash of the provided data.
Attempts to compute the CRC-32 hash of the provided data into the provided destination.
public static bool TryHash(Crc32ParameterSet parameterSet, ReadOnlySpan<byte> source, Span<byte> destination, out int bytesWritten)
Creates a clone of the current instance with a copy of the current instance's internal state.
Gets the current computed hash value without modifying accumulated state.