blake2s

package
v0.0.0-...-02870f1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: MIT Imports: 4 Imported by: 2

Documentation

Overview

Package blake2s implements the BLAKE2s hash algorithm as defined in RFC 7693.

Index

Constants

View Source
const (
	// The blocksize of BLAKE2s in bytes.
	BlockSize = 64
	// The hash size of BLAKE2s-256 in bytes.
	Size = 32
)

Variables

This section is empty.

Functions

func New256

func New256(key []byte) (hash.Hash, error)

New256 returns a new hash.Hash computing the BLAKE2s-256 checksum. A non-nil key turns the hash into a MAC. The key must between zero and 32 bytes long.

func New256WithPersonalization

func New256WithPersonalization(key, personalization []byte) (hash.Hash, error)

func Sum256

func Sum256(data []byte) [Size]byte

Sum256 returns the BLAKE2s-256 checksum of the data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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