3 ms·
The choice of CRC32 together with a secret seems odd, it seems to be relying on a security property which CRC32 doesn't have. This looks like the kind of appli
by caf 9y ago
The choice of CRC32 together with a secret seems odd, it seems to be relying on a security property which CRC32 doesn't have.
This looks like the kind of application that SipHash is designed for.
- MrBuddyCasino 9y agoSpeed? CRC32 has dedicated CPU instructions on recent x64.
- Arnt 9y agoAnd size. The whole header ought to fit in 64 bits (a single cmpxchg), which rules out all of the good secure hashes.
- DominikD 9y agoAs long as results are different on every application run and app crashes when there's a mismatch, you don't need anything as strong as SipHash since your previous guesses don't narrow options for your future attack attempts.