hash

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package hash contains Writer interface and SHA3 hasher.

hash.Writer intended to be implemented by records for proper hashing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSHA3 added in v0.0.4

func NewSHA3() hash.Hash

NewSHA3 just wrapper around sha3.New224.

Just to avoid of binding on golang.org/x/crypto/sha3 in codebase.

func SHA3hash224

func SHA3hash224(hw ...Writer) []byte

SHA3hash224 returns SHA3 hash calculated on data received from Writer.

Types

type Writer

type Writer interface {
	WriteHash(io.Writer)
}

Writer is the interface that wraps the WriteHash method.

WriteHash should write all required for proper hashing data to io.Writer.

Jump to

Keyboard shortcuts

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