Standard library / hash/crc32

hash/crc32.ChecksumIEEE()

Compute the IEEE CRC-32 directly, without supplying a lookup table. Appropriate when the external format specifies IEEE CRC-32. This is not a cryptographic authentication primitive. Expected stdout: 'cbf43926\n'.

Formal Syntax & Structure

go syntaxgo
func ChecksumIEEE(data []byte) uint32

Parameters & Attributes

NameTypeDescription
data[]byteBytes whose checksum is computed.

Return Value

uint32

32-bit unsigned checksum.

Working Example

Example Snippetgo
package main
import (  "fmt"  "hash/crc32")
func main() { fmt.Printf("%08x\n", crc32.ChecksumIEEE([]byte("123456789"))) }
Go Reference