crypto

package
v0.0.0-...-79a944e Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Blake2b

func Blake2b(inp, personal []byte, size int) []byte

func Blake2b256

func Blake2b256(data []byte) []byte

func FnvHash

func FnvHash(mix []uint32, data []uint32)

fnvHash mixes in data into mix using the ethash fnv method.

func Keccak256

func Keccak256(b []byte) []byte

func Keccak512

func Keccak512(b []byte) []byte

func KeccakF800

func KeccakF800(state *[25]uint32)

Types

type Hasher

type Hasher func(dest []byte, data []byte)

hasher is a repetitive hasher allowing the same hash data structures to be reused between hash runs instead of requiring new ones to be created.

func NewKeccak256Hasher

func NewKeccak256Hasher() Hasher

func NewKeccak512Hasher

func NewKeccak512Hasher() Hasher

Jump to

Keyboard shortcuts

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