tmhash

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2018 License: Apache-2.0 Imports: 2 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 added in v0.26.0

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 added in v0.26.0

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