Hardware Security

Besides speed, what advantage comes from giving CPUs dedicated AES instructions (such as AES-NI)?

  1. AAES keys automatically become longer
  2. BIt eliminates the table lookups used by software implementations, preventing cache-timing leaks caused by key-dependent memory accesses
  3. CAnyone can read AES ciphertext without the key
Show answer and explanation

Answer: B. It eliminates the table lookups used by software implementations, preventing cache-timing leaks caused by key-dependent memory accesses

Fast software AES often used large precomputed tables, reading them at locations determined by the data and key. Because the access location depended on the key, attacks inferring the key from cache hit and miss timing became known. Dedicated instructions compute in constant time inside the circuit without tables, so they are both faster and immune to this kind of side-channel leakage.

  • A. The key length does not change.
  • B. Correct. Computation happens in constant time inside the circuit.
  • C. Cryptographic strength is unchanged.
Practice this topic Back to topic

More Hardware Security questions

  1. What must be observed when implementing cryptographic code in constant time?
  2. What is the idea of partitioning a shared cache as a countermeasure to cache side channels?
  3. Why do some systems handling confidential work disable the CPU's simultaneous multithreading (SMT)?
  4. What countermeasure protects against external devices connected to a PC using DMA to read or write main memory without permission?
  5. What is the idea of "defense in depth," emphasized in hardware and software security?