liveBook · Manning

Power analysis

As explained in Hacking Cryptography

Power analysis is a side-channel technique that infers computational behavior or secrets from a device's power consumption.

Power analysis infers computational behavior or secrets by observing a device’s power consumption. During RSA exponentiation, square-and-multiply can produce visibly different power levels because multiplication consumes more resources than squaring, allowing an observer to associate operations with exponent bits and recover a private exponent. section 10.4.2

A practical attack and its main limitation:

  • Attach an oscilloscope between the power source and the target device, then inspect the exponentiation trace. section 10.4.2
  • Distinguish multiplication from squaring and map the differing operations to 1 and 0 bits in the private exponent. section 10.4.2
  • Account for noise and difficulty isolating operations on superscalar processors; machine learning increasingly automates that analysis. section 10.4.2

Constant-operation defense

The Montgomery powering ladder performs one multiplication, one squaring, and one swap for every exponent bit, regardless of whether the bit is 0 or 1. It produces the same result as square-and-multiply while reducing operation-dependent power differences. section 10.4.2

How Hacking Cryptography covers it

How deep it goes
Traces an oscilloscope-based attack and contrasts operation leakage with constant-time implementation, stopping short of optimization details.
Examples
Uses RSA power traces, square-and-multiply for exponent 42, and the Montgomery powering ladder.
What it assumes
Assumes familiarity with binary exponents and modular exponentiation while illustrating the attack sequence concretely.
What you can do after
Apply it via an oscilloscope to analyze operation-dependent power traces and recognize constant-operation defenses.
How it connects
Links side-channel analysis, RSA exponentiation, square-and-multiply, and constant-time implementations.

Also explained in

Compare how 3 books explain power analysis →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Hacking Cryptography. The section links point to the parts of the book it draws on.