crypto

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: GPL-3.0 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 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