Documentation ¶
Overview ¶
Package hidrivehash implements the HiDrive hashing algorithm which combines SHA-1 hashes hierarchically to a single top-level hash.
Note: This implementation does not grant access to any partial hashes generated.
See: https://developer.hidrive.com/wp-content/uploads/2021/07/HiDrive_Synchronization-v3.3-rev28.pdf (link to newest version: https://static.hidrive.com/dev/0001)
Index ¶
Constants ¶
View Source
const ( // BlockSize of the checksum in bytes. BlockSize = 4096 // Size of the checksum in bytes. Size = sha1.Size )
Variables ¶
View Source
var ( // ErrorInvalidEncoding is returned when a hash should be decoded from a binary form that is invalid. ErrorInvalidEncoding = errors.New("encoded binary form is invalid for this hash") // ErrorHashFull is returned when a hash reached its capacity and cannot accept any more input. ErrorHashFull = errors.New("hash reached its capacity") )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.