bcd32 based Hash Function with variable Length Hash Output
From Karl.Frank@21:1/5 to All on Tue May 2 16:36:31 2017
Out of curiosity I thought that the bit mixing function of bcd32 might
also perform greatly inside a hash function. So I like to propose such a versatile hash calculator build around my 32bit PRNG bcd32. It can
generate any hash with a size of a multiple of 32bit like
32/64/96/128/160 ... and so on.
It passes all extensive tests for distribution, collision, and
performance conducted with the SMHasher test battery made by Austin
Appleby, author of the MurmurHash. https://github.com/aappleby/smhasher
Finally just a reminder that bcd32_hash in its current form is not
suitable for cryptographic purposes. Although the internal state has
huge size of 192bit it might be a relatively easy task crafting two
files that give the exact same hash because of the simple construct of
the mixer. This might hold true even if bcd32_hash was initialised with
a 128bit secret key.