crypto: Index | Files

package blake2s

import ""

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


Package Files

blake2s.go blake2s_amd64.go blake2s_generic.go


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

func New256 Uses

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 Sum256 Uses

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

Sum256 returns the BLAKE2s-256 checksum of the data.

Package blake2s imports 3 packages (graph) and is imported by 6 packages. Updated 2017-04-26. Refresh now. Tools for package owners.