Documentation
¶
Overview ¶
Package dchash implements a configurable variation of Dropbox's Content Hash.
Index ¶
Constants ¶
View Source
const ( // DefaultHash denotes the default Hash. DefaultHash = crypto.SHA256 // DefaultBlockSize denotes the default block size. DefaultBlockSize = 1 << 22 )
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns a Hash which yields checksums according to Dropbox's Content Hash algorithm, more details on which may be found here:
https://www.dropbox.com/developers/reference/content-hash
Should newFunc be nil, DefaultHash.New will be used in its place.
Should blockSize be less than 1, DefaultBlockSize will be used instead.
Hashes returned by New are NOT safe for concurrent use by multiple goroutines.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.