News for hackers. Stuff that matters.
Re:Hacker Unlocks ‘High Security’ Electronic Safes Without a... by _asummers on Friday August 12, 2016 @09:43PM (#12279826)
Nope! If you run the same input enough times, you can get enough data to be able to subtract the random noise out; the larger random number range, the more times you have to run it. The way to properly combat timing attacks is to write constant time code. Daniel Bernstein has made his career talking about and implementing this class of crypto.
Re:Hacker Unlocks ‘High Security’ Electronic Safes Without a... by cmdrfred on Saturday August 13, 2016 @03:15PM (#12282675)
Humor me, I think figured it out, run an identical "testPass()" function first and time it ('password' == 'password' if you will), then simply wait at least that length of time before acting on the result. As a bonus add a random delay after that so adversaries might waste time on isolating the randomness as you describe.
Re:Hacker Unlocks ‘High Security’ Electronic Safes Without a... by _asummers on Saturday August 13, 2016 @08:11PM (#12283707)
If you really want to add some sort of randomness, make it based on the user input. That way your randomness depends on what you send and won't be able to be subtracted out. Or use constant time things (which is hard for the record!) and not have to deal with it.