rclone: github.com/ncw/rclone/backend/dropbox/dbhash Index | Files

package dbhash

import "github.com/ncw/rclone/backend/dropbox/dbhash"

Package dbhash implements the dropbox hash as described in

https://www.dropbox.com/developers/reference/content-hash

Index

Package Files

dbhash.go

Constants

const (
    // BlockSize of the checksum in bytes.
    BlockSize = sha256.BlockSize
    // Size of the checksum in bytes.
    Size = sha256.BlockSize
)

func New Uses

func New() hash.Hash

New returns a new hash.Hash computing the Dropbox checksum.

func Sum Uses

func Sum(data []byte) [Size]byte

Sum returns the Dropbox checksum of the data.

Package dbhash imports 2 packages (graph) and is imported by 6 packages. Updated 2019-08-06. Refresh now. Tools for package owners.