Documentation ¶
Overview ¶
Package siphash implements SipHash-2-4, a fast short-input PRF created by Jean-Philippe Aumasson and Daniel J. Bernstein.
Index ¶
Constants ¶
View Source
const ( // The block size of hash algorithm in bytes. BlockSize = 8 // The size of hash output in bytes. Size = 8 // The size of 128-bit hash output in bytes. Size128 = 16 )
Variables ¶
This section is empty.
Functions ¶
func Hash ¶
Hash returns the 64-bit SipHash-2-4 of the given byte slice with two 64-bit parts of 128-bit key: k0 and k1.
func Hash128 ¶
Hash returns the 128-bit SipHash-2-4 of the given byte slice with two 64-bit parts of 128-bit key: k0 and k1.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.