hashing

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: MIT Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(input []byte) (out [32]byte)

Hash the given input. Use a new hashing object, and ditch it after hashing. See GetHashFn for a more efficient approach for repeated hashing.

func XorBytes32

func XorBytes32(a [32]byte, b [32]byte) (out [32]byte)

Types

type HashFn

type HashFn func(input []byte) [32]byte

Hashes the input, and returns the hash as a byte slice

func GetHashFn

func GetHashFn() HashFn

Get a hash-function that re-uses the hashing working-variables

Jump to

Keyboard shortcuts

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