google / safeside

Understand and mitigate software-observable side-channels
BSD 3-Clause "New" or "Revised" License
498 stars 54 forks source link

Bugfix in the cache sidechannel computation. #92

Closed asteinha closed 4 years ago

asteinha commented 5 years ago

Current implementation fails when the hit is at index 0 and there is no noise. In that case the first and second is both 0 and the condition first > 2 * second + 40 is never reached.