hash

package
v1.7.6 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var New = blake3.New

New is an alias to blake3.New.

Functions

func GetHasher added in v1.6.0

func GetHasher() *blake3.Hasher

GetHasher will get a blake3 hasher from the pool. It may or may not allocate a new one. Consumers are not required to call Reset() on the hasher before putting it back in the pool.

func PutHasher added in v1.6.0

func PutHasher(hasher *blake3.Hasher)

PutHasher resets the hasher and puts it back to the pool.

func Sum

func Sum(chunks ...[]byte) (rst [32]byte)

Sum computes 256-bit hash from chunks with blake3.

func Sum20 added in v1.5.0

func Sum20(chunks ...[]byte) (rst [20]byte)

Types

type Hash

type Hash = hash.Hash

Hash is an alias to stdlib hash.Hash interface.

Jump to

Keyboard shortcuts

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