blake512

package
v1.0.2023 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

	// The size of BLAKE-384 hash in bytes.
	Size384 = 48

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

Variables

This section is empty.

Functions

func New

func New() hash.Hash

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

func New384

func New384() hash.Hash

New384 returns a new hash.Hash computing the BLAKE-384 checksum.

func New384WithSalt

func New384WithSalt(salt []byte) hash.Hash

New384WithSalt is like New384 but initializes salt with the given 32-byte slice.

func NewWithSalt

func NewWithSalt(salt []byte) hash.Hash

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

func Sum

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

Sum returns the BLAKE-512 checksum of the data.

func Sum384

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

Sum384 returns the BLAKE-384 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