siphash

package
v0.8.5 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2019 License: ISC Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Siphash

func Siphash(k0, k1, b uint64) uint64

func SiphashPRF

func SiphashPRF(v *[4]uint64, b uint64) uint64

func SiphashPRF8192

func SiphashPRF8192(v *[4]uint64, nonce *[8192]uint64, uorv uint64, result *[8192]uint64)

func SiphashPRF8192Seq

func SiphashPRF8192Seq(v *[4]uint64, nonce uint64, uorv uint64, result *[8192]uint64)

Types

type SipHash

type SipHash struct {
	V [4]uint64 // v is the current internal state.
	// contains filtered or unexported fields
}

func Newsip

func Newsip(siphashKey []byte) *SipHash

siphashKey[:] = [196 107 38 219 80 75 209 213 243 49 219 252 101 35 20 105] siphashKey[8:] = [243 49 219 252 101 35 20 105] k0 = 15407178610857372612 k1 = 7571715794457539059 before s.V = [0 0 0 0] after s.V = [12015082867820662449 971459224712208030 13377991302290020773 2121554997101417600]

Jump to

Keyboard shortcuts

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