Skip to content
/ hash Public

Go module hash provides crc4, crc8, and crc16 hash.Hash implementations.

License

Notifications You must be signed in to change notification settings

knieriem/hash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This module provides implementations of Go's hash.Hash interface for calculating 8- and 16-bit CRCs.

Initially, the crc16, and crc8 implementations were derived from an early version of Go's crc32.go by substituting some values only; now these implementations are thin wrappers around crcutil to allow for more flexibility regarding polynomial representations, and CRC models.

Implemented models:

crc4.ITU     0x3
crc8.DOWCRC  0x8C   / 0x31    (e.g. Dallas/Maxim)
crc16.IBMCRC 0xA001 / 0x8005  (e.g. Modbus)

About

Go module hash provides crc4, crc8, and crc16 hash.Hash implementations.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages