- Introduced by
- Eli Biham
- Year
- 1990
- Type
- statistical attack on block ciphers
- Family
- Cryptanalytic technique
What does it do?
Differential cryptanalysis is a statistical attack on symmetric block ciphers.
It studies how differences between pairs of inputs propagate through the rounds of a cipher, and it uses the resulting non-random output differences to recover information about the key. Introduced by Eli Biham and Adi Shamir in 1990 and applied to DES-like cryptosystems, it remains a standard reference point in block cipher design and evaluation.
The intuition behind the method
Differential cryptanalysis works by studying plaintext pairs with a chosen difference and observing how that difference evolves through the cipher rounds. If certain differences propagate with higher probability than a random permutation would produce, this non-randomness can be exploited to recover key bits. The attacker selects input differences intended to maximise the probability of useful output differences, then uses the observed output differences to narrow down the candidate keys.
History
Biham and Shamir introduced differential cryptanalysis in 1990 and applied it to DES-like cryptosystems, as the title of the original paper indicates. The work influenced later design criteria. AES and other modern ciphers were developed with explicit resistance to this attack class. For the data and operation counts of the attack on DES, consult the original paper directly.
When to use it
Choose differential cryptanalysis when you are evaluating or designing a block cipher and need to judge its resistance to differential attacks, for example by searching for high-probability characteristics given its S-boxes and round structure. It is the right lens when the question concerns how input differences propagate through the cipher. Do not treat it as the main assessment for stream ciphers, public-key schemes or hash functions without adapting the model. It also does not address implementation leakage, which is a separate question. Full-round modern ciphers are not expected to fall to this attack in practice, so the technique is mainly used to verify design margins.
Limitations and considerations
- Standard attacks require very large numbers of plaintext-ciphertext pairs with chosen input differences, which is often impossible to obtain in a real deployment.
- Modern designs such as AES were built to limit the probability of useful differential characteristics, so attacks on full-round versions are not practical.
- The probability of a characteristic over several rounds is the product of its per-round probabilities, so it falls quickly as the round count grows. Finding strong characteristics becomes harder for longer round counts.
- The computational cost of mounting an attack can be prohibitively high even when the data requirement is met.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Gives a concrete way to measure resistance: the probability of differential characteristics can be computed round by round from the S-box difference distribution.
- Its probabilistic framework lets designers estimate the data and time cost of an attack before any attack is mounted.
- Guides cipher design, since the technique indicates which S-boxes and round transformations need strengthening.
- Can reveal S-box and round-function properties that are relevant to differential propagation.
Applications
- Security evaluation of block cipher designs during development and review
- Academic cryptanalysis of reduced-round or legacy ciphers
- Checking round counts and S-box choices against differential attacks in design documentation
- Input to standardisation reviews, where resistance to differential attack is one assessed property
- Informing decisions about retiring ciphers whose margin against differential attacks has shrunk
How it works
How it works
Identify differential characteristics: sequences of input and output differences across cipher rounds, each with a probability that is averaged over keys. High-probability characteristics are the basis of the attack. These probabilities are computed under the Markov-cipher model, which treats round subkeys as independent and uniformly random. The key-averaged probability of a characteristic can differ from its probability for a particular key, and estimates made under the model do not hold when its assumptions fail.
Estimate the number of plaintext pairs needed to distinguish the cipher from a random permutation and to recover key bits. The number of pairs needed scales roughly inversely with the probability of the chosen characteristic, so low-probability characteristics demand much more data.
Use plaintext-ciphertext pairs that exhibit the expected difference to test candidate values of the relevant subkey bits, eliminating candidates that are inconsistent with the observations. Concretely, the attacker guesses the relevant subkey bits, applies the filter to each pair, and counts the candidates that survive. The total work is roughly the number of pairs multiplied by the number of guesses.
Estimate the total computational cost and data volume of the attack, and compare them with the cost of brute-force key search, which for a k-bit key is about 2^k trial encryptions. Practical attacks are judged by this balance.
Common pitfalls
- Counting only the number of pairs and ignoring the operation count of key recovery; both must be estimated when an attack is compared with brute-force search.
- Confusing the key-averaged probability of a characteristic with its probability for one specific key.
- Reading a theoretical attack on a reduced-round variant as a break of the full cipher.
- Assuming resistance to differential attacks implies overall security; linear cryptanalysis and other attack classes must be assessed separately.
Frequently asked questions
What is a differential characteristic?
A differential characteristic is a sequence of input and output differences at each cipher round with a specified probability. Finding high-probability characteristics is key to mounting successful differential attacks.
How does AES resist differential cryptanalysis?
AES combines a non-linear substitution layer with a linear mixing layer. Over successive rounds, differences spread across many S-box applications, and AES was designed to bound the probability of differential characteristics. The quantitative bounds are given in the AES design analysis literature, which should be consulted directly rather than taken from this summary.
Can differential cryptanalysis break modern ciphers?
Not in practice against full-round versions of modern ciphers such as AES. The attacks reported in the literature target reduced-round variants or require resources that make them impractical for the full cipher.
Is differential cryptanalysis the same as linear cryptanalysis?
No. Differential analysis studies input-output differences, while linear cryptanalysis studies linear approximations. Both are important attack classes; ciphers must resist both.
How do I evaluate a cipher's resistance to differential attacks?
Analyse the S-box difference distribution and the round transformations to find characteristics of high probability. Automated search tools and hand analysis are both used. Results are normally reported in peer-reviewed venues so that the community can check them.
Related methods
Sources
Biham, E., & Shamir, A. (1990). Differential cryptanalysis of DES-like cryptosystems. In Advances in Cryptology - CRYPTO 1990, LNCS 537, pp. 2-21.
Open DOI referenceKnudsen, L. R. (2005). Block ciphers and public key cryptosystems. In Information Security and Cryptography, pp. 1-25.
Open publication reference