siphash.h: SipHash-2-4


siphash.h implements SipHash-2-4, as described by Jean-Philippe Aumasson and Daniel J. Berstein. It's derived from their reference C implementation, and can be used by simply including the header.

siphash.h refactors the reference code to provide the common three method hash interface—sip24_init, sip24_update, and sip24_final. It also provides a convenience macro, siphash24, for digesting a fixed size message in a single call.


See the source file for a description of the implementation and usage examples.



Public release.


The code resides in a single header file: siphash.h.

other projects

airctl | bsdauth | cnippets | libarena | libevnet | authldap | streamlocal | libnostd | zoned | dns.c | delegate.c | llrb.h | lpegk | json.c | cqueues | siphash.h | hexdump.c | timeout.c | luapath | luaossl | lunix | phf | runlua | tarsum | prosody-openbsd | AnonNet