blake2b

package
v1.1.66 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Blake2b

type Blake2b struct {
	HashSize int
	// contains filtered or unexported fields
}

Blake2b is a blake2b implementation of the hasher interface.

func (*Blake2b) Compute

func (b2b *Blake2b) Compute(s string) []byte

Compute takes a string, and returns the blake2b hash of that string

func (*Blake2b) EmptyHash

func (b2b *Blake2b) EmptyHash() []byte

EmptyHash returns the blake2b hash of the empty string

func (*Blake2b) IsInterfaceNil

func (b2b *Blake2b) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*Blake2b) Size

func (b2b *Blake2b) Size() int

Size returns the size, in number of bytes, of a blake2b hash

Jump to

Keyboard shortcuts

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