hash

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: AGPL-3.0, ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Zero256 = make([]byte, 32)

Functions

func Sum added in v0.1.1

func Sum(hashAlgorithm crypto.Hash, hashes ...[]byte) []byte

Sum hashes together arbitary data units

func Sum256

func Sum256(data []byte) []byte

Sum256 returns the SHA256 checksum of the data using the MessageHash augmented hashing.

func Sum512

func Sum512(data []byte) []byte

Sum512 returns the SHA512 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