hasher

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const HashSize = 32

HashSize is the size of a hash

Variables

This section is empty.

Functions

func VerifyHash

func VerifyHash(hash []byte) error

VerifyHash verifies the hash size

Types

type Keccak

type Keccak interface {
	hash.Hash
	Read([]byte) (int, error)
}

Keccak wraps sha3.state. In addition to the usual hash methods, it also supports Read to get a variable amount of data from the hash state. Read is faster than Sum because it doesn't copy the internal state, but also modifies the internal state.

func NewKeccak

func NewKeccak() Keccak

NewKeccak creates a new SHA3 Keccak hasher

Jump to

Keyboard shortcuts

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