Documentation ¶
Index ¶
- func SipHashBlock(v [4]uint64, nonce uint64, rotE uint8, xorAll bool) uint64
- func Siphash(k0, k1, b uint64) uint64
- func SiphashPRF(v *[4]uint64, b uint64) uint64
- func SiphashPRF8192(v *[4]uint64, nonce *[8192]uint64, uorv uint64, result *[8192]uint64)
- func SiphashPRF8192Seq(v *[4]uint64, nonce uint64, uorv uint64, result *[8192]uint64)
- type SipHash
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SipHashBlock ¶
SipHashBlock builds a block of siphash values by repeatedly hashing from the nonce truncated to its closest block start, up to the end of the block. Returns the resulting hash at the nonce's position.
func SiphashPRF ¶
func SiphashPRF8192 ¶
Types ¶
type SipHash ¶
type SipHash struct { V [4]uint64 // v is the current internal state. // contains filtered or unexported fields }
func Newsip ¶
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]
Click to show internal directories.
Click to hide internal directories.