Discover Packages
github.com/Murgeye/crypto
blake2
package
Version:
v0.0.0-...-34d48bb
Opens a new window with list of versions in this module.
Published: Jul 7, 2016
License: LGPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
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.
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(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(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(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.
Source Files
¶
Directories
¶
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.
Click to show internal directories.
Click to hide internal directories.