Categorygithub.com/go-daq/crc8
modulepackage
0.0.0-20170116120732-380c22547098
Repository: https://github.com/go-daq/crc8.git
Documentation: pkg.go.dev

# README

crc8

GoDoc

crc8 implements the 8-bit cyclic redundancy check, or CRC-8. It's entirely copied from Go's standard library hash/crc32 with obvious edits to change the CRC-32 hash functions into CRC-8.

# Functions

Checksum returns the CRC-8 checksum of data using the polynomial represented by the Table.
MakeTable returns a Table constructed from the specified polynomial.
New creates a new hash.Hash8 computing the CRC-32 checksum using the polynomial represented by the Table.
Update returns the result of adding the bytes in p to the crc.

# Constants

The size of a CRC-8 checksum in bytes.

# Interfaces

Hash8 is the common interface implemented by all 8-bit hash functions.

# Type aliases

Table is a 256-word table representing the polynomial for efficient processing.