News for hackers. Stuff that matters.
Re:Binary Search: A new implementation that is up to 25% faster by rocqua on Monday July 20, 2020 @03:18AM (#23895466)
Are binary searches that much better than hashmaps if a malicious attacker gets to interact with the system?
Re:Binary Search: A new implementation that is up to 25% faster by smabie on Monday July 20, 2020 @03:44AM (#23895611)
Hashmaps are resistant against timing attacks, while binary searches are not.
Re:Binary Search: A new implementation that is up to 25% faster by rurban on Monday July 20, 2020 @12:55PM (#23899652)
With possible timing attacks you usually do a full linear search, without early return. This search has always constant time, twice as slow. When the attacker gets to know the seed somehow even hashmaps can be exploited.