treehash

package module
v0.0.0-...-d5ac6fe Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_CHUNK = 1024 * 1024
)

Variables

This section is empty.

Functions

func ComputeHashFromFile

func ComputeHashFromFile(file string, offset, size, chunk_size int64) (string, string, error)

func ComputeHashFromList

func ComputeHashFromList(list []string) string

func New

func New(segmentSize int, h hash.Hash) hash.Hash

New creates a new hash.Hash computing the Tree Hash checksum.

Types

This section is empty.

Jump to

Keyboard shortcuts

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