hash

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidHash = errors.New("invalid hash")

ErrInvalidHash when Hash cannot be cast properly.

Functions

This section is empty.

Types

type Hash

type Hash crypto.Hash

Hash is a type to ensure crypto.Hash() can support various marshaling techniques.

func (*Hash) MarshalText

func (d *Hash) MarshalText() (text []byte, err error)

func (*Hash) ToCrypto

func (d *Hash) ToCrypto() crypto.Hash

func (*Hash) UnmarshalText

func (d *Hash) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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