crypto: golang.org/x/crypto/blake2b Index | Files

package blake2b

import "golang.org/x/crypto/blake2b"

Package blake2b implements the BLAKE2b hash algorithm as defined in RFC 7693.

Index

Package Files

blake2b.go blake2bAVX2_amd64.go blake2b_generic.go

Constants

const (
    // The blocksize of BLAKE2b in bytes.
    BlockSize = 128
    // The hash size of BLAKE2b-512 in bytes.
    Size = 64
    // The hash size of BLAKE2b-384 in bytes.
    Size384 = 48
    // The hash size of BLAKE2b-256 in bytes.
    Size256 = 32
)

func New256 Uses

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

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

func New384 Uses

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

New384 returns a new hash.Hash computing the BLAKE2b-384 checksum. A non-nil key turns the hash into a MAC. The key must between zero and 64 bytes long.

func New512 Uses

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

New512 returns a new hash.Hash computing the BLAKE2b-512 checksum. A non-nil key turns the hash into a MAC. The key must between zero and 64 bytes long.

func Sum256 Uses

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

Sum256 returns the BLAKE2b-256 checksum of the data.

func Sum384 Uses

func Sum384(data []byte) [Size384]byte

Sum384 returns the BLAKE2b-384 checksum of the data.

func Sum512 Uses

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

Sum512 returns the BLAKE2b-512 checksum of the data.

Package blake2b imports 3 packages (graph) and is imported by 15 packages. Updated 2017-06-19. Refresh now. Tools for package owners.