hasher

package module
v0.0.0-...-473dce3 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2018 License: MPL-2.0 Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hasher

type Hasher interface {
	Clone() Hasher
	Name() string
	New() hash.Hash
	Size() int
}

Hasher is a hash interface implemening a hash function

func Default

func Default() Hasher

Default returns the default hasher

func New

func New(algo string) (Hasher, error)

New returns a new hasher based on the given algorithm

type SHA256Hasher

type SHA256Hasher struct{}

func (*SHA256Hasher) Clone

func (h *SHA256Hasher) Clone() Hasher

func (*SHA256Hasher) Name

func (h *SHA256Hasher) Name() string

func (*SHA256Hasher) New

func (h *SHA256Hasher) New() hash.Hash

func (*SHA256Hasher) Size

func (h *SHA256Hasher) Size() int

Jump to

Keyboard shortcuts

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