xof

package
v0.0.0-...-3348f2e Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterXOF

func RegisterXOF(x XofID, f func() XOF)

Types

type XOF

type XOF interface {
	// Write absorbs more data into the hash's state. It panics if called
	// after Read.
	io.Writer

	// Read reads more output from the hash. It returns io.EOF if the limit
	// has been reached.
	io.Reader

	// Clone returns a copy of the XOF in its current state.
	Clone() XOF

	// Reset resets the XOF to its initial state.
	Reset()
}

XOF defines the interface to hash functions that support arbitrary-length output.

type XOFFunc

type XOFFunc func() XOF

type XofID

type XofID uint
const (
	SHAKE128 XofID = iota
	SHAKE256
	BLAKE2XB
	BLAKE2XS
)

func (XofID) Available

func (x XofID) Available() bool

func (XofID) New

func (x XofID) New() XOF

func (XofID) XofIDFunc

func (x XofID) XofIDFunc() XofID

Jump to

Keyboard shortcuts

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