Skip to main content

Crc16 Class

NuGet: GHIElectronics.TinyCLR.Cryptography
Assembly: GHIElectronics.TinyCLR.Cryptography
Namespace: GHIElectronics.TinyCLR.Cryptography

CRC-16 hash. Computes a 16-bit CRC over a byte buffer, optionally with a non-zero seed.

public class Crc16

Constructors

Crc16()

public Crc16()

Creates a new CRC-16 calculator.

Methods

ComputeHash(byte[] data)

public ushort ComputeHash(byte[] data)

Computes the 16-bit CRC over the entire buffer with a zero seed.

Returns ushort

ComputeHash(byte[] data, int offset, int count)

public ushort ComputeHash(byte[] data, int offset, int count)

Computes the 16-bit CRC over a range of the buffer with a zero seed.

Returns ushort

ComputeHash(byte[] data, int offset, int count, ushort seed)

public ushort ComputeHash(byte[] data, int offset, int count, ushort seed)

Computes the 16-bit CRC over a range of the buffer using the given seed.

Returns ushort