hash

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 3 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) Raw added in v0.4.0

func (id Hashable) Raw() []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)
}

Jump to

Keyboard shortcuts

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