hash

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SHA256

func SHA256(raw []byte) ([]byte, error)

func SHA256OrPanic

func SHA256OrPanic(raw []byte) []byte

Types

type Hashable

type Hashable []byte

func (Hashable) RawString

func (id Hashable) RawString() string

func (Hashable) String

func (id Hashable) String() string

type Hasher

type Hasher interface {
	GetHash() hash.Hash

	Hash(msg []byte) ([]byte, error)
}

func GetHasher

func GetHasher(sp view.ServiceProvider) Hasher

Jump to

Keyboard shortcuts

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