Versions in this module Expand all Collapse all v0 v0.1.0 Jan 27, 2025 Changes in this version + const CCITT + const CCITTFalse + const IBM + const IBM_NORMAL + const MBUS + const SCSI + const XMODEM + var CCITTFalseTable = makeBitsReversedTable(CCITTFalse) + var CCITTTable = makeTable(CCITT) + var IBMTable = makeTable(IBM) + var MBusTable = makeBitsReversedTable(MBUS) + var SCSITable = makeTable(SCSI) + var XModemTable = makeBitsReversedTable(XMODEM) + func Checksum(data []byte, tab *Table) uint16 + func ChecksumCCITT(data []byte) uint16 + func ChecksumCCITTFalse(data []byte) uint16 + func ChecksumIBM(data []byte) uint16 + func ChecksumInverted(data []byte, tab *Table) uint16 + func ChecksumMBus(data []byte) uint16 + func ChecksumSCSI(data []byte) uint16 + func ChecksumXModem(data []byte) uint16 + func Update(crc uint16, tab *Table, p []byte) uint16 + func UpdateInverted(crc uint16, tab *Table, p []byte) uint16 + type Hash16 interface + Sum16 func() uint16 + func New(tab *Table) Hash16 + type Table struct + func MakeBitsReversedTable(poly uint16) *Table + func MakeTable(poly uint16) *Table + func (t *Table) Entries() [256]uint16