package hash
import "cmd/internal/hash"
Package hash implements hash functions used in the compiler toolchain.
Index ¶
- Constants
- func New16() hash.Hash
- func New20() hash.Hash
- func New32() hash.Hash
- func Sum16(data []byte) [Size16]byte
- func Sum20(data []byte) [Size20]byte
- func Sum32(data []byte) [Size32]byte
Constants ¶
const ( // Size32 is the size of the 32-byte hash checksum. Size32 = 32 // Size20 is the size of the 20-byte hash checksum. Size20 = 20 // Size16 is the size of the 16-byte hash checksum. Size16 = 16 )
Functions ¶
func New16 ¶
New16 returns a new hash.Hash computing the 16 bytes hash checksum.
func New20 ¶
New20 returns a new hash.Hash computing the 20 bytes hash checksum.
func New32 ¶
New32 returns a new hash.Hash computing the 32 bytes hash checksum.
func Sum16 ¶
Sum16 returns the 16 bytes checksum of the data.
func Sum20 ¶
Sum20 returns the 20 bytes checksum of the data.
func Sum32 ¶
Sum32 returns the 32 bytes checksum of the data.
Source Files ¶
- Version
- v1.24.0 (latest)
- Published
- Feb 10, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 9 minutes ago –
Tools for package owners.