quickxorhash

package
v1.52.1-0...-9b21a15 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

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

Constants

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

Variables

This section is empty.

Functions

func New

func New() hash.Hash

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

func Sum

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

Sum returns the quickXorHash 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