blake2b

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: GPL-3.0 Imports: 2 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
}

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) 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