1// +build arm amd64,!appengine,!gccgo
2
3// Written in 2012 by Dmitry Chestnykh.
4//
5// To the extent possible under law, the author have dedicated all copyright
6// and related and neighboring rights to this software to the public domain
7// worldwide. This software is distributed without any warranty.
8// http://creativecommons.org/publicdomain/zero/1.0/
9
10// This file contains a function definition for use with assembly implementations of Hash()
11
12package siphash
13
14//go:noescape
15
16// Hash returns the 64-bit SipHash-2-4 of the given byte slice with two 64-bit
17// parts of 128-bit key: k0 and k1.
18func Hash(k0, k1 uint64, b []byte) uint64
19
20//go:noescape
21
22// Hash128 returns the 128-bit SipHash-2-4 of the given byte slice with two
23// 64-bit parts of 128-bit key: k0 and k1.
24func Hash128(k0, k1 uint64, b []byte) (uint64, uint64)
25
26//go:noescape
27func blocks(d *digest, p []uint8)
28
29//go:noescape
30func finalize(d *digest) uint64
31
32//go:noescape
33func once(d *digest)
34