Theory and practice
joriszwart.nl/timing-attacks
int strcmp(char[] s1, char[] s2) {
int i = 0
while (s1[i] == s2[i]) {
if (s1[i] == 0 || s2[i] == 0) {
return 0
}
i++
}
return s1[i] - s2[i]
}
I ask you, the public!
CPU times are small compared to network times!
So it can never work!
Just add a random delay!
Add a fixed delay, then!
Our users don't do that!
Famous last words...
Wasn't this already?
Eliminates network noise!