sip-hash
2020-06-10
SipHash hash functions
Upstream URL
Author
Robert Brown <robert.brown@gmail.com>
License
Public domain
sip-hash
A Common Lisp implementation of SipHash, a cryptographically strong family of hash functions designed by Jean-Philippe Aumasson and Daniel J. Bernstein.
For more information see the SipHash web site and the SipHash reference implementation.
The sip-hash API
hash-64-2-4 octets k0 k1 &key (start 0) (end (length octets))
Returns as an (unsigned-byte 64) the 64-bit SipHash-2-4 hash code for
positions START through END of OCTETS, using the initial state stored in K0
and K1.
hash-64-4-8 octets k0 k1 &key (start 0) (end (length octets))
Returns as an (unsigned-byte 64) the 64-bit SipHash-4-8 hash code for
positions START through END of OCTETS, using the initial state stored in K0
and K1.
hash-128-2-4 octets k0 k1 &key (start 0) (end (length octets))
Returns as two (unsigned-byte 64) values the 128-bit SipHash-2-4 hash code
for positions START through END of OCTETS, using the initial state stored
in K0 and K1.
hash-128-4-8 octets k0 k1 &key (start 0) (end (length octets))
Returns as two (unsigned-byte 64) values the 128-bit SipHash-4-8 hash code
for positions START through END of OCTETS, using the initial state stored
in K0 and K1.