Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
SipHash: a fast short-input PRF
C C++
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Makefile initial commit license
siphash.c Changed function to accept const key
siphash.h Changed function to accept const key
siphash_impl.h Removed need to #include siphash_impl.h in siphash.h
siphash_sse2.c Changed function to accept const key
siphash_ssse3.c Changed function to accept const key

Basic+SSE2+SSSE3 implementation of SipHash-2-4 based off the paper. On an E5200, icc gives the best speeds for all SSE versions & 32bit versions, gcc gives the best speed for 64bit basic

done to see how difficult implementing the spec was as their source is not up (yet), and curious about 32bit performance

Performance on an E5200

Best Impl. 7 bytes 128 bytes 1024 bytes
icc 32bit 202 cycles 1015 cycles 6.7 cpb
icc 32bit sse2 135 cycles 688 cycles 4.48 cpb
icc 32bit ssse3 125 cycles 614 cycles 3.98 cpb
gcc 64bit 61 cycles 276 cycles 1.81 cpb


Public Domain

Something went wrong with that request. Please try again.