Documentation
¶
Overview ¶
Package siphash implements a hash / MAC function developed Jean-Philippe Aumasson and Daniel J Bernstein in 2012. SipHash computes 64-bit message authentication code from a variable-length message and a 128-bit secret key. It was designed to be efficient even for short inputs, with performance comparable to non-cryptographic hash functions. This package implements SipHash with the recommended parameters: c = 2 and d = 4.
Index ¶
Constants ¶
View Source
const TagSize = 8
The size of the SipHash authentication tag in bytes.
Variables ¶
This section is empty.
Functions ¶
func Sum ¶
Sum generates an authenticator for msg with a 128 bit key and puts the 64 bit result into out.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.