Re: Don't use S-boxes!

From: Erwann ABALEA (erwann_at_abalea.com)
Date: 11/13/04


Date: Sat, 13 Nov 2004 18:03:39 +0100

On Sat, 13 Nov 2004, Randy Howard wrote:

> In article <slrncp7p1b.105t.usenet@stoneport.math.uic.edu>, djb@cr.yp.to
> says...
> > BRG wrote:
> > > If I am reading this correctly, his claim is not that AES is insecure
> > > but rather that particular _implementations_ of AES might be insecure
> > > because they might leak key bits when subject to timing attacks.
> >
> > More than that: I'm saying that _typical_ software implementations of
> > AES _do_ leak key bits to the simplest conceivable timing attack. The
> > underlying problem is that it's hard to do an S-box lookup in constant
> > time on modern CPUs.
>
> Is there any impact on this approach working on systems with more than
> one processor (SMP or dual core) or with "virtual CPUs" (hyperthreading)
> as opposed to a conventional UP system? How about the effects of other
> application loads on a multitasking system impacting the results?

I ran the time.c program along with the 6 AES implementations present in
aesbench.tgz (devine, gladman, mks, openssl, gpg, tom), on several
machines, one of them is a dual Celeron 560. Patterns also appear on this
machine.

The "worst" case was the "devine" implementation on a Pentium III. 50% of
the key bytes showed a repetitive pattern.

-- 
Erwann ABALEA <erwann@abalea.com> - RSA PGP Key ID: 0x2D0EABD5
-----
ED> >:)
T'utilise des rires enregistrés (c)... T'es *vraiment* un dinosaure?
J'ai un doute...
-+-RG: Guide du Neueu Usenet-La prudence est le début de la sagesse-+-


Relevant Pages

  • Re: Is it possible to count time in micosecond under Linux?
    ... >> Actually, a lot of modern machines have multiple CPUs, and on such ... >> machines this isn't safe at all without a lot of error handling, ... I write code for them daily, including the dual processor Xeon I'm ... Randy Howard 2reply remove FOOBAR ...
    (comp.programming)
  • Re: Compiler optimizations
    ... Randy Howard wrote: ... know what machines the code will run on. ... How can it possibly know which computeryou will install and run it ... Otherface: Jena RDF/Owl toolkit http://jena.sourceforge.net/ ...
    (comp.lang.c)
  • Re: Mac and Windows
    ... On 2006-05-08 23:28:13 +0300, Randy Howard ... on Apple machines... ... I read about Boot Camp but I'd like to be sure ...
    (comp.sys.mac.system)