Go ahead!

Memoization for Everything

siphash-d

| Comments

siphash-d is the D implementation of SipHash.

The latest CRuby uses SipHash to prevent Hash-flooding DoS attack. From now on, SipHash like algorithm will be important for robust application. So I implemented SipHash for D.

Current version provides only siphash24 function:

1
2
3
4
5
import siphash;

ubyte[16] k = cast(ubyte[])"To be|not to be!";
ubyte[] msg = cast(ubyte[])"that is the question.";
auto hashed = siphash24(k, msg);

I plan to add std.digest like struct and other APIs if needed.

siphash-d has already listed in the official site. Thanks to JP Aumasson!

Comments