Documentation
¶
Overview ¶
Package checksum computes and verifies file checksums.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSHA256Hash ¶
GetSHA256Hash returns the SHA256 hash of data read from the provided reader.
func GetSHA256OfFile ¶
GetSHA256OfFile returns the SHA256 hash of the provided file.
func VerifyFile ¶
func VerifyFile(path string, algorithm api.ChecksumAlgorithm, digest string) error
VerifyFile checks a file against the expected digest using the given algorithm.
Types ¶
Click to show internal directories.
Click to hide internal directories.