summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/LICENSE.siphash
Commit message (Collapse)AuthorAgeFilesLines
* Replace Qt's hashing function with SipHashThiago Macieira2020-04-091-0/+116
This commit replaces MurmurHash with SipHash for all strings longer than the size of a pointer. The most important difference between those algorithms is that MurmurHash has this unwelcome property: for two byte sequences x and y, if you know that x and y have the same hashing for a given seed, then they have the same hashing for all seeds. SipHash has no such issue. If the seed changes, the strings that used to compute to the same hash are no longer likely to do so. We've chosen to implement a SipHash-1-2 algorithm instead of the regular 2-4 as that has roughly the same performance as the old DJB33XA algorithm. It's around 50% slower than MurmurHash, which is acceptable given the added security. Task-number: QTBUG-47566 Change-Id: I09100678ff4443e6be06fffd14819c8878d223e2 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>