hash

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2025 License: Apache-2.0 Imports: 5 Imported by: 24

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

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 {
	Hash(msg []byte) ([]byte, error)
}

type SHA256Provider

type SHA256Provider struct {
}

func NewSHA256Provider

func NewSHA256Provider() *SHA256Provider

func (*SHA256Provider) GetHash

func (p *SHA256Provider) GetHash() hash.Hash

func (*SHA256Provider) Hash

func (p *SHA256Provider) Hash(msg []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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