blake256

package
v1.0.2031 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// The size of BLAKE-256 hash in bytes.
	Size = 32

	// The size of BLAKE-224 hash in bytes.
	Size224 = 28

	// The block size of the hash algorithm in bytes.
	BlockSize = 64
)

Variables

This section is empty.

Functions

func G added in v1.0.2012

func G(v *[16]uint32, m []uint32, i int, a, b, c, d, e int)

func New

func New() hash.Hash

New returns a new hash.Hash computing the BLAKE-256 checksum.

func New224

func New224() hash.Hash

New224 returns a new hash.Hash computing the BLAKE-224 checksum.

func New224WithSalt added in v1.0.2012

func New224WithSalt(salt []byte) hash.Hash

New224WithSalt is like New224 but initializes salt with the given 16-byte slice.

func NewWithSalt added in v1.0.2012

func NewWithSalt(salt []byte) hash.Hash

NewWithSalt is like New but initializes salt with the given 16-byte slice.

func Sum added in v1.0.2013

func Sum(data []byte) (out [Size]byte)

Sum returns the BLAKE-256 checksum of the data.

func Sum224

func Sum224(data []byte) (out [Size224]byte)

Sum224 returns the BLAKE-224 checksum of the data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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