checksum

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sha256Sum

func Sha256Sum(rdr io.Reader) (bytesum []byte, err error)

Sha256Sum generate a sha256sum from rdr and return an array of bytes representing the sha256sum.

func Sha256SumFile

func Sha256SumFile(srcFile string, sumfile string) (sum string, err error)

Sha256SumFile generates a sha256sum for srcFile and writes the output to sumfile. It will also return the sum of the srcFile.

func VerifySha256sum

func VerifySha256sum(srcFile, sumfile string) (pass bool, sum string, err error)

VerifySha256sum calculates the sha256sum of srcFile and checks the contents of sumfile to determine if the sha256sums match.

Types

This section is empty.

Jump to

Keyboard shortcuts

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