Re: Random delay as a countermeasure to timing attacks
- From: Unruh <unruh-spam@xxxxxxxxxxxxxx>
- Date: 6 Nov 2006 17:19:37 GMT
Francois Grieu <fgrieu@xxxxxxxxx> writes:
I'm trying to quatitatively evaluate, using
information-theoretic arguments, how much addition of
random delays is an efficient countermeasure against timing
attacks against cryptographic algorihms, e.g. DJB's
http://cr.yp.to/papers.html#cachetiming
I assume added random delays are independant, truly random,
with a continuous distribution fully known to the adversary,
and are the only randomness in the adversary's measurements.
One of the key features of an algorithm are that it be fast. So you want to
slow it down. And you need to slow it down by much more than the slowest
part, so that your random slowdown can swamp the significant difference
between the fastest and slowest runs. Far far better to design it properly
so that all take the same amount of time, rather than slowing it down by a
factor of 5 and then still not being certain that a statistical analysys
cannot differentiate between the slowest and fasterst cases.
What are the approriate hypothesis to state that the
number of measurements necessary to carry an attack
scales up as the square of the mean random delay, when we
scale up our distribution ? of course, that can only be
up to some point, where other attacks such as brute force
become an inssue.
Can we conjecture with some confidence that it is enough
that the standard deviation in the mean of n of our delays
exceeds the maximum (or maybe even standard) deviation in
one execution of the attacked algorithm attribuable to the
timing effect that the adversary uses, to ensure that she
learns at most one (of few enough) bits of information
from all her n measuremùents ?
[to back this conjecture, I rely of the fact that the
weighted sum of n measurements with sum of absolute
values of coefficients normalized to 1 has a standard
deviation at least equal to that of the average of the
n measurements]
Are actual attacks even close to this conjectured
information theoretic thresold ?
If we use a uniformly distributed random delay, the best
estimate of measurements of the SAME actual duration is
not based on the average of all the experiments (the average
of the extremes is better); is it a good reason to use another
distribution? which distribution?
is it enough to sum two uniform delays each half as long?
Any idea or pointer much appreciated.
François Grieu.
- Follow-Ups:
- Re: Random delay as a countermeasure to timing attacks
- From: Francois Grieu
- Re: Random delay as a countermeasure to timing attacks
- References:
- Random delay as a countermeasure to timing attacks
- From: Francois Grieu
- Random delay as a countermeasure to timing attacks
- Prev by Date: Re: libtomcrypt vs. libgcrypt
- Next by Date: Re: libtomcrypt vs. libgcrypt
- Previous by thread: Re: Random delay as a countermeasure to timing attacks
- Next by thread: Re: Random delay as a countermeasure to timing attacks
- Index(es):
Relevant Pages
|