pachhash

package
v2.9.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const OutputSize = 32

OutputSize is the size of an Output in bytes

Variables

This section is empty.

Functions

func EncodeHash

func EncodeHash(bytes []byte) string

EncodeHash encodes a hash into a string representation.

func New

func New() hash.Hash

New creates a new hasher.

Types

type Output

type Output = [OutputSize]byte

Output is the output of the hash function. Sum returns an Output

func ParseHex

func ParseHex(x []byte) (*Output, error)

ParseHex parses a hex string into output.

func Sum

func Sum(data []byte) Output

Sum computes a hash sum for a set of bytes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL