hasher

package
v0.0.0-...-343e942 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blake2bHasher

type Blake2bHasher struct {
	// contains filtered or unexported fields
}

func (*Blake2bHasher) Hash

func (s *Blake2bHasher) Hash(data []byte) []byte

func (*Blake2bHasher) Hasher

func (s *Blake2bHasher) Hasher() hash.Hash

type Hasher

type Hasher interface {
	Hash([]byte) []byte
	Hasher() hash.Hash
}

func NewBlake2bHasher

func NewBlake2bHasher() Hasher

func NewLukeHasher

func NewLukeHasher() Hasher

func NewSha256Hasher

func NewSha256Hasher() Hasher

func NewZeeboHasher

func NewZeeboHasher() Hasher

type LukeHasher

type LukeHasher struct {
	// contains filtered or unexported fields
}

func (*LukeHasher) Hash

func (s *LukeHasher) Hash(data []byte) []byte

func (*LukeHasher) Hasher

func (s *LukeHasher) Hasher() hash.Hash

type Sha256Hasher

type Sha256Hasher struct {
	// contains filtered or unexported fields
}

func (*Sha256Hasher) Hash

func (s *Sha256Hasher) Hash(data []byte) []byte

func (*Sha256Hasher) Hasher

func (s *Sha256Hasher) Hasher() hash.Hash

type ZeeboHasher

type ZeeboHasher struct {
	// contains filtered or unexported fields
}

func (*ZeeboHasher) Hash

func (s *ZeeboHasher) Hash(data []byte) []byte

func (*ZeeboHasher) Hasher

func (s *ZeeboHasher) Hasher() hash.Hash

Jump to

Keyboard shortcuts

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