package
1.8.9
Repository: https://github.com/celo-org/celo-blockchain.git
Documentation: pkg.go.dev

# README

Go implementation of BLAKE2s collision-resistant cryptographic hash function created by Jean-Philippe Aumasson, Samuel Neves, Zooko Wilcox-O'Hearn, and Christian Winnerlein (https://blake2.net).

INSTALLATION

$ go get github.com/dchest/blake2s

DOCUMENTATION

See http://godoc.org/github.com/dchest/blake2s

PUBLIC DOMAIN DEDICATION

Written in 2012 by Dmitry Chestnykh.

To the extent possible under law, the author have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. http://creativecommons.org/publicdomain/zero/1.0/

# Functions

New returns a new hash.Hash configured with the given Config.
New256 returns a new hash.Hash computing the BLAKE2s 32-byte checksum.
NewMAC returns a new hash.Hash computing BLAKE2s prefix- Message Authentication Code of the given size in bytes (up to 32) with the given key (up to 32 bytes in length).
Sum256 returns a 32-byte BLAKE2s hash of data.

# Constants

block size of algorithm.
maximum size of key.
maximum personalization string size.
maximum salt size.
maximum digest size.

# Structs

Config is used to configure hash function parameters and keying.
Tree represents parameters for tree hashing.