Has it been Pwned
Side channelPractical impact

Bernstein: cache-timing attack recovers an AES key from a network server

Daniel J. Bernstein showed that table-based AES implementations (OpenSSL's T-tables) leak key bytes through cache-dependent load timing, and demonstrated full key recovery against a simple UDP server on another computer that encrypted attacker-chosen packets, averaging many timings to overcome network noise.

A separate source-review date has not been recorded for this historical entry. Corrections.

Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.

Background

AES's design looked side-channel-friendly on paper, but the fast software implementation indexes lookup tables with key-dependent values, and memory access time depends on what is in the cache. Bernstein argued this was a structural problem: secret data must never be used as an array index or branch condition - the core rule of constant-time programming.

The ultimate fixes were constant-time bitsliced implementations and, more importantly, hardware AES instructions (Intel AES-NI, introduced 2008-2010; ARMv8 Crypto Extensions), which remove table lookups entirely. The AES algorithm itself was never mathematically weakened.

Sources

  1. paperCache-timing attacks on AEScr.yp.to, cr.yp.to
  2. wikiTiming attackWikipedia, en.wikipedia.org