siphashpg

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Crounds = 2
	Drounds = 4
)

default: SipHash-2-4

Variables

This section is empty.

Functions

func Siphash

func Siphash(in []byte, k []byte, cr, dr int, dbl bool) (ra, rb uint64)

take input slice in and seeds k as well a compression and final rounds cr, dr return a 64 bit hash in ra and if dbl is true a 128 bit hash in ra and rb

func TRACE

func TRACE(inlen int, v0, v1, v2, v3 uint64)

func U64tou8le

func U64tou8le(v uint64) (r []byte)

func U8tou64le

func U8tou64le(p []byte) uint64

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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