aHash: High performance DOS resistant hash

Introducing aHash.

I wanted to get around the dilemma of having to choose between using SipHash to get DOS resistance, of FxHash to have high performance. So I wrote an alternative.

The idea with aHash is to be a non-cryptographically secure, but DOS resistant, and collision resistant hash function. It is able to do this with high performance by taking advantage of the AES hardware instruction available on modern X86 processors. Using this instruction a single round of AES is nearly as cheap as a 64bit multiply but provides much higher quality mixing and diffusion.

Benchmarks are posted in the README.
This is my first crate. I welcome any and all feedback.

2 Likes