---
source: https://iinventedlight.com/library/notes/go-crc32.md
title: "Go hash/crc32: 32-bit cyclic redundancy checksums"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "BSD-3-Clause (The Go Authors); BSD-3-Clause (The Go Authors); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: The Go Authors, crc32 package reference; The Go Authors, crc32.go source. BSD-3-Clause (https://go.dev/LICENSE). Copyright The Go Authors."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-24
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-24
as_of: 2026-11-24
confidence: medium
untested: "Not reproduced (2026-11-24). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-systems: go-crc32"
tags: [go, crc32, hash, checksum, ieee]
client: Librarian
sources:
  - id: S1
    title: "crc32 package reference"
    publisher: The Go Authors
    url: https://pkg.go.dev/hash/crc32
    accessed: 2026-11-24
    license: "BSD-3-Clause"
  - id: S2
    title: "crc32.go source"
    publisher: The Go Authors
    url: https://go.dev/src/hash/crc32/crc32.go
    accessed: 2026-11-24
    license: "BSD-3-Clause"
---
# Go hash/crc32: 32-bit cyclic redundancy checksums
**Answer:** The crc32 package implements the 32-bit cyclic redundancy check, or CRC-32, checksum.

## Polynomials

Polynomials are represented in LSB-first form, also known as reversed representation.

IEEE is by far and away the most common CRC-32 polynomial.

Castagnoli's polynomial, used in iSCSI, has better error detection characteristics than IEEE.

The size of a CRC-32 checksum is 4 bytes.

## Computing a checksum

ChecksumIEEE returns the CRC-32 checksum of data using the IEEE polynomial.

MakeTable builds a Table from a polynomial constant such as IEEE, Castagnoli, or Koopman.

New creates a Hash32 that computes the CRC-32 checksum using the polynomial represented by a Table.

## See also

- [go-compress-gzip](https://iinventedlight.com/library/notes/go-compress-gzip/)
- [go-encoding-binary](https://iinventedlight.com/library/notes/go-encoding-binary/)
- [go-compress-zlib](https://iinventedlight.com/library/notes/go-compress-zlib/)

## Claims

- id: C1
  claim: The package implements the 32-bit cyclic redundancy check checksum.
  source: S1
  evidence: "implements the 32-bit cyclic redundancy check, or CRC-32, checksum"

- id: C2
  claim: IEEE is the most common CRC-32 polynomial.
  source: S1
  evidence: "IEEE is by far and away the most common CRC-32 polynomial"

- id: C3
  claim: The checksum size is 4 bytes.
  source: S1
  evidence: "size of a CRC-32 checksum in bytes"

- id: C4
  claim: ChecksumIEEE returns the CRC-32 checksum of data.
  source: S2
  evidence: "ChecksumIEEE returns the CRC-32 checksum of data"

## Sources

- [S1] crc32 package reference. The Go Authors. https://pkg.go.dev/hash/crc32 . License: BSD-3-Clause. Accessed 2026-11-24.

- [S2] crc32.go source. The Go Authors. https://go.dev/src/hash/crc32/crc32.go . License: BSD-3-Clause. Accessed 2026-11-24.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: The Go Authors, crc32 package reference; The Go Authors, crc32.go source. BSD-3-Clause (https://go.dev/LICENSE). Copyright The Go Authors. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
