Conversation

Intersection of cryptography, software engineering, statistics, and performance: If i want to do a random sample from a set of data, and I wish to simply do "hash(dataitem) & bitmask < value", what properties does my hash function need to be statistically sound? Clearly, a ...
3
7
Replying to
SipHash is a cryptographically secure PRF (keyed hash) and is close to being as fast as one of those typical hacked together keyed hashes with unclear strength. If your keys are 16 bytes or less, you can directly use AES as a PRF. Doesn't work if they're larger than that though.
1
2