github.com/piotrnar/gocoin@v0.0.0-20240512203912-faa0448c5e96/lib/others/siphash/hash_asm.go (about) 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 12 package 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. 18 func 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. 24 func Hash128(k0, k1 uint64, b []byte) (uint64, uint64) 25 26 //go:noescape 27 func blocks(d *digest, p []uint8) 28 29 //go:noescape 30 func finalize(d *digest) uint64 31 32 //go:noescape 33 func once(d *digest)