dhash

package
v0.0.0-...-15b7eb6 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2018 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

A group of hash functions based on siphash. There are functions with no seed, with 64 bit seed and with 128 bit seed. All functions call into the siphash function with the desired output-length.

The siphash implementation for this package is:

"github.com/dchest/siphash"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash128

func Hash128(p []byte) (uint64, uint64)

Note that 16-byte output is considered experimental by SipHash authors at this time.

func Hash128WithSeed

func Hash128WithSeed(p []byte, seed0 uint64) (uint64, uint64)

Note that 16-byte output is considered experimental by SipHash authors at this time.

func Hash128WithSeeds

func Hash128WithSeeds(p []byte, seed0, seed1 uint64) (uint64, uint64)

Note that 16-byte output is considered experimental by SipHash authors at this time.

func Hash64

func Hash64(p []byte) uint64

func Hash64WithSeed

func Hash64WithSeed(p []byte, seed0 uint64) uint64

func Hash64WithSeeds

func Hash64WithSeeds(p []byte, seed0, seed1 uint64) uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

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