Skip to content

brown/sip-hash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Common Lisp implementation of the SipHash family of cryptographically secure hash functions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published