2 ms·
You nailed it. In other words, literally everything is wrong with that function.
by zaroth 13y ago
You nailed it. In other words, literally everything is wrong with that function.
- michaelmior 13y agoI would agree with the other comment that I suspect it would be impossible to get accurate data for a timing attack over Tor. Not only is the connection slow, but my experience has been that bandwidth and latency can be highly variable.
- handsomeransoms 13y agoWith enough sampling, it should be possible. Additionally, the values you are trying to infer are pretty small (8 bytes each) so that makes it easier.
- michaelmior 13y agoFair point. I'll admit I'm biased because I've messed around with trying time attacks on my vulnerable code in arguably ideal scenarios and haven't had much luck. So the feasibility of this is questionable to me, but I'm willing to accept that it's an issue. In any case, the above block of code should be easily fixable.