checksum_common

package
v0.0.0-...-70e5762 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2018 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

the core checksum implements of md5, sha1, sha224, sha256, sha384, sha512.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareChecksum

func CompareChecksum(files []string, t string, output_message, output_warn bool) bool

read the file contains the checksum and check it

files: file name lists which contains the checksums.

t: the type of checksum, md5 or sha1...

return true if everything is ok

return false if there are some errors.

func GenerateChecksum

func GenerateChecksum(files []string, t string) bool

generate the checksum for given file list.

files: the file name lists to generate checksum

t: the type of checksum, md5 or sha1...

return false if there are some errors.

return true if there is no error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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