rclone: github.com/ncw/rclone/backend/onedrive/quickxorhash Index | Files

package quickxorhash

import "github.com/ncw/rclone/backend/onedrive/quickxorhash"

Package quickxorhash provides the quickXorHash algorithm which is a quick, simple non-cryptographic hash algorithm that works by XORing the bytes in a circular-shifting fashion.

It is used by Microsoft Onedrive for Business to hash data.

See: https://docs.microsoft.com/en-us/onedrive/developer/code-snippets/quickxorhash

Index

Package Files

quickxorhash.go

Constants

const (
    // BlockSize is the preferred size for hashing
    BlockSize = 64
    // Size of the output checksum
    Size = 20
)

func New Uses

func New() hash.Hash

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

func Sum Uses

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

Sum returns the quickXorHash checksum of the data.

Package quickxorhash imports 1 packages (graph) and is imported by 3 packages. Updated 2018-08-30. Refresh now. Tools for package owners.