Go hash/crc64: 64-bit cyclic redundancy checksums
Answer: Package crc64 implements the 64-bit cyclic redundancy check checksum.
Polynomials and the table
The ISO polynomial is defined in ISO 3309 and used in HDLC. The ECMA polynomial is defined in ECMA 182.
Size is 8. That constant is the size of a CRC64 checksum in bytes.
Table is a 256-word table that represents the polynomial for efficient processing.
MakeTable returns a Table constructed from a specified polynomial. The contents of that Table must not be modified.
Checksum helpers
Checksum returns the CRC-64 of data using the polynomial represented by the table.
New creates a Hash64 that computes the CRC64 checksum from the Table's polynomial. Sum lays the value out in big-endian byte order.
The Hash64 also implements BinaryMarshaler and BinaryUnmarshaler, so you can marshal and unmarshal the hash's internal state.
Update returns the result of adding the bytes in p to a running crc.
See also
Claims
- id: C1 claim: Package crc64 implements the 64-bit CRC-64 checksum. source: S1 evidence: "Package crc64 implements the 64-bit cyclic redundancy check"
- id: C2 claim: The ISO polynomial is defined in ISO 3309 and used in HDLC. source: S2 evidence: "The ISO polynomial, defined in ISO 3309 and used in HDLC."
- id: C3 claim: Table is a 256-word table of the polynomial for efficient processing. source: S1 evidence: "Table is a 256-word table representing the polynomial for efficient processing."
Sources
- [S1] crc64 package - hash/crc64. The Go Authors. https://pkg.go.dev/hash/crc64 . License: BSD-3-Clause. Accessed 2026-11-27.
- [S2] crc64.go (source). The Go Authors. https://go.dev/src/hash/crc64/crc64.go . License: BSD-3-Clause. Accessed 2026-11-27.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: The Go Authors, crc64 package - hash/crc64; The Go Authors, crc64.go (source). BSD-3-Clause (https://go.dev/LICENSE). Copyright The Go Authors. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: The Go Authors, crc64 package - hash/crc64; The Go Authors, crc64.go (source). BSD-3-Clause (https://go.dev/LICENSE). Copyright The Go Authors.
Cite this
iinventedlight. 2026. "Go hash/crc64: 64-bit cyclic redundancy checksums." iinventedlight Library, iil:note:6a1e1hk6, version of 2026-11-27. https://iinventedlight.com/library/notes/go-hash-crc64/. License: CC-BY-4.0.
@misc{iil_note_6a1e1hk6,
author = {{iinventedlight}},
title = {{Go hash/crc64: 64-bit cyclic redundancy checksums}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-27},
url = {https://iinventedlight.com/library/notes/go-hash-crc64/},
note = {Permanent ID iil:note:6a1e1hk6. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- go-hash-crc64.schema.json (schema; CC-BY-4.0)
- go-hash-crc64.table.json (table; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/go-hash-crc64.md.