Fast Perfect Hashing Of Integral Types

http://www.jandrewrogers.com/2019/02/12/fast-perfect-hashing/ [www.jandrewrogers.com]

2019-02-13 20:18

> Encrypting a padded 32-bit value with AES will not produce a perfect 32-bit hash. AES is only guaranteed to be perfect if the key is 128-bits. Making the AES algorithm produce a perfect hash of, for example, a 32-bit key in its lowest 32 bits requires understanding the internals of the AES algorithm.

source: HN