blake256

package
v1.0.2018 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const BlockSize = 64

The block size of the hash algorithm in bytes.

View Source
const Size = 32

The size of BLAKE-256 hash in bytes.

View Source
const Size224 = 28

The size of BLAKE-224 hash in bytes.

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 PUTU64 added in v1.0.2012

func PUTU64(ptr []byte, a uint64)

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