tmhash

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: UNKNOWN, Apache-2.0, UNKNOWN not legal advice Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Size      = sha256.Size
	BlockSize = sha256.BlockSize
)
View Source
const (
	TruncatedSize = 20
)

Variables

This section is empty.

Functions

func New

func New() hash.Hash

New returns a new hash.Hash.

func NewTruncated

func NewTruncated() hash.Hash

NewTruncated returns a new hash.Hash.

func Sum

func Sum(bz []byte) []byte

Sum returns the SHA256 of the bz.

func SumTruncated

func SumTruncated(bz []byte) []byte

SumTruncated returns the first 20 bytes of SHA256 of the bz.

Types

This section is empty.

Jump to

Keyboard shortcuts

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