hash

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PerformHash

func PerformHash(H Hash, bs []byte) ([]byte, error)

PerformHash takes a generic hash.Hash and returns the hashed payload

func Sha3256

func Sha3256(bs []byte) ([]byte, error)

Sha3256 takes a byte slice and returns the SHA3-256 hash

func Sha3512

func Sha3512(bs []byte) ([]byte, error)

Sha3512 takes a byte slice and returns the SHA3-512 hash

func Xxhash

func Xxhash(bs []byte) ([]byte, error)

Types

type Hash

type Hash = hash.Hash

Jump to

Keyboard shortcuts

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