Skill 3.7.9

Timing

Key Concepts

If an operation's duration depends on secret data, for example comparing a password or MAC byte by byte and stopping at the first mismatch, an attacker who measures many responses can recover the secret gradually. Timing attacks have been demonstrated remotely over networks.

Defences include constant-time comparison functions and cryptographic implementations, and adding noise does not reliably help.