dbhash

package
v0.0.0-...-1b1593a Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package dbhash implements the dropbox hash as described in

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

Index

Constants

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

Variables

This section is empty.

Functions

func New

func New() hash.Hash

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

func Sum

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

Sum returns the Dropbox checksum of the data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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