Commit Graph

4 Commits

Author SHA1 Message Date
tg 643cd0b7e9 add missing initialisation of stack memory to BAFHHostStr(); fix comments for BAFHror() 2015-05-30 22:14:06 +00:00
tg 48ba7b850c small gem ;) 2014-10-02 19:34:06 +00:00
tg 7d19d66bce note Mirkev wants to use ULEB128 for numbers 2014-06-29 11:48:05 +00:00
tg c8188de88b add BAFH: Better Avalanche for the Jenkins hash
This uses NZAAT Init and Update, and AES MixColumns for Finish.
For hashtables this will need XOR with uint32_t then rotation
with uint5_t (so a total of 37 bit of entropy) for mitigation.
For entropy avalanche this needs mixing, and better handling
of the IV and/or the first four bytes, see BAFHHost* macros.

Thanks to Bob Jenkins for the one-at-a-time hash, Bret Mulvey for
the Hash.cs AvalancheTest, Jonathan “ciruZ” Schleifer and Dominik
“Natureshadow” George for discussion, Theodore “Ted” Ts'o for valuable
input on arc4random_roundhash, “poncho” for suggesting and Orson
“nightcracker” Peters for implementing MixColumns, tarent GmbH for
letting me test this empirically on a 64 GiB RAM machine.
2014-01-11 15:59:41 +00:00