package hash

import "cmd/internal/hash"

Package hash implements hash functions used in the compiler toolchain.

Index

Constants

const Size32 = 32

Size32 is the size of the 32-byte hash functions New32 and Sum32.

Functions

func New32

func New32() hash.Hash

New32 returns a new hash.Hash computing the 32-byte hash checksum. Note that New32 and Sum32 compute different hashes.

func Sum32

func Sum32(data []byte) [32]byte

Sum32 returns a 32-byte checksum of the data. Note that Sum32 and New32 compute different hashes.

Source Files

hash.go

Version
v1.25.0-rc.1
Published
Jun 11, 2025
Platform
js/wasm
Imports
2 packages
Last checked
3 minutes ago

Tools for package owners.