blake2

package
v0.0.0-...-34d48bb Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2016 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package blake2 implements the both hash functions BLAKE2b and BLAKE2s described in RFC 7693. RFC 7693 only specifies BLAKE2 as pure hash and mac function, but BLAKE2 supports also salted (randomized) and personalized hashing. These features are implemented in the blake2b package for BLAKE2b and in the blake2s package for BLAKE2s.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sum160s

func Sum160s(out *[20]byte, msg, key []byte)

Sum160s computes the 160 bit BLAKE2s checksum (or MAC if a key is specified) of msg and saves the sum in out. The key is optional and can be nil.

func Sum256b

func Sum256b(out *[32]byte, msg, key []byte)

Sum256b computes the 256 bit BLAKE2b checksum (or MAC if a key is specified) of msg and saves the sum in out. The key is optional and can be nil.

func Sum256s

func Sum256s(out *[32]byte, msg, key []byte)

Sum256s computes the 256 bit BLAKE2s checksum (or MAC if a key is specified) of msg and saves the sum in out. The key is optional and can be nil.

func Sum512

func Sum512(out *[64]byte, msg, key []byte)

Sum512 computes the 512 bit BLAKE2b checksum (or MAC if a key is specified) of msg and saves the sum in out. The key is optional and can be nil.

Types

This section is empty.

Directories

Path Synopsis
Package blake2b implements the BLAKE2b hash function.
Package blake2b implements the BLAKE2b hash function.
Package blake2s implements the BLAKE2s hash function.
Package blake2s implements the BLAKE2s hash function.

Jump to

Keyboard shortcuts

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