← All notes

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

Sources

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

Permanent ID: iil:note:6a1e1hk6

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.},
}

Markdown

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.

All artifact files (JSON index)

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.