- Introduced by
- Eli Biham, Adi Shamir, Mitsuru Matsui
- Year
- 1991
- Type
- Cryptographic strength analysis
- Family
- Cryptanalysis and attack methods
What does it do?
Symmetric key cryptanalysis is the study of attacks against symmetric encryption algorithms, such as DES, AES and stream ciphers, with the aim of measuring their security and finding weaknesses.
Differential and linear cryptanalysis are the classical techniques. They shaped the design of modern block ciphers and remain standard tools for assessing a cipher's resistance.
The intuition behind the method
Cryptanalysis asks whether a cipher can be broken with fewer operations than brute-force key search. Differential cryptanalysis studies how a known XOR difference between two plaintexts propagates through the rounds of a cipher, and uses the resulting pattern of ciphertext differences to draw conclusions about the key. Linear cryptanalysis instead looks for linear approximations of parts of the cipher's nonlinear operations that hold with a probability that differs from chance, and uses many known plaintext-ciphertext pairs to estimate key bits statistically. Modern symmetric ciphers are designed with these attacks in mind, using nonlinear S-boxes and diffusion layers that make such differences and approximations hard to sustain over many rounds.
History
Biham and Shamir published differential cryptanalysis in 1991, showing that DES was weaker than had been assumed. Matsui's linear cryptanalysis of DES was published at EUROCRYPT in the same period, and the two attacks together changed how ciphers were evaluated. The 1997 NIST Advanced Encryption Standard competition led to the selection of Rijndael, whose designers explicitly considered differential and linear attacks (see Daemen and Rijmen). Later work added algebraic attacks, impossible differentials and zero-correlation attacks.
When to use it
Choose symmetric key cryptanalysis when you are evaluating a block or stream cipher design, reviewing a candidate for a standard, or deciding whether a legacy cipher should be retired. Differential and linear analysis are appropriate for judging the resistance of a block cipher's round structure and S-boxes. Side-channel analysis and implementation testing are the right tools when the question concerns a particular software or hardware realisation. Do not use cryptanalysis as a substitute for choosing a vetted standard: if an established algorithm already meets your requirements, selecting and correctly using it is usually the more important decision. A cryptanalytic review is also not a proof of security, so it should be combined with the designer's own analysis.
Limitations and considerations
- Differential and linear complexity estimates rest on modelling assumptions. The standard one is the Markov-type assumption: round keys are treated as independent and characteristic or approximation probabilities are multiplied across rounds. When these assumptions fail, for example because of dependencies between rounds, the estimated attack cost can be wrong.
- Published attacks on full-round AES offer little or no practical advantage over exhaustive key search, so they change the security margin assessment more than the practical risk.
- The absence of a known attack is not proof of security. A cipher is evaluated only against the attack families studied so far, and new families can appear later.
- Practical breaks of deployed systems often come from implementation behaviour, such as timing or power leakage, which analysis of the cipher's algorithm does not cover.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Differential and linear analysis are defined through explicit probabilities and correlations, so a cipher's resistance can be expressed as a measurable quantity rather than an informal judgement.
- Applied to DES, these attacks exposed structural weaknesses that were not evident from the cipher specification alone, which motivated later design work.
- Resistance criteria derived from these attacks, such as properties required of S-boxes and of the diffusion layer, can be checked during design, before a cipher is published.
- Results are stated for a given number of rounds, so a new attack on a cipher can be compared directly with the published round-reduced results for that cipher to see whether it improves on them.
Applications
- Standards evaluation: candidate ciphers for public standards, such as the AES competition, are assessed through published cryptanalysis.
- Cipher design: designers check new S-boxes and round structures against differential and linear attacks before publication.
- Security review: analysts reassess deployed ciphers when new attack techniques are published.
- Forensics and law enforcement: cryptanalytic methods are applied to encrypted material where a cipher or its implementation is weak.
- Academic research: cryptanalysis produces results on attack complexity and on the structural properties of cipher designs.
How it works
How it works
The analyst first obtains the complete specification of the cipher: key schedule, round function, substitution tables, permutations, block size and number of rounds. Every later step depends on these details, so an incomplete specification limits the analysis.
The analyst chooses an attack family, such as differential, linear or related-key cryptanalysis, and searches for characteristics or approximations that survive the cipher's rounds with a non-negligible probability. Differential attacks track input and output differences; linear attacks track parity relations between bits. A differential characteristic is a sequence of round differences, and its probability is the chance that the input difference produces the stated output difference over the rounds considered. A linear approximation relates a parity of input bits to a parity of output bits, and its bias is the amount by which the probability that this relation holds differs from one half.
The attack is run against the cipher using the queries its threat model allows: chosen plaintexts for differential attacks, known plaintexts for linear attacks, and related keys where the model permits. The collected pairs are used to test key guesses for the outer rounds.
The analyst estimates the data, time and memory the attack needs and compares this with exhaustive key search. A result is meaningful only when it is stated for a specific number of rounds and a specific threat model; an attack on fewer rounds does not by itself break the full cipher. Results are therefore reported as a combination of rounds attacked, data, time and memory. Exhaustive search over a k-bit key takes about 2^k trial keys, so an attack gains on exhaustive search when its time is below that cost. Reduced-round results show how close a design comes to a weakness and how much security margin remains.
Common pitfalls
- Comparing attack results without matching the threat model. Differential attacks assume chosen plaintexts and linear attacks assume known plaintexts, so results obtained under different models are not directly comparable unless this is stated.
- Treating a reduced-round attack as a break of the full cipher. Many published results target fewer rounds than the standard specifies, and their meaning is limited to those rounds.
- Accepting an attack's stated complexity at face value without checking whether its data and memory requirements are realistic for the intended adversary.
- Assessing the algorithm alone and ignoring side-channel leakage from the implementation, which can break a cipher whose algorithmic analysis is sound.
Frequently asked questions
If modern ciphers like AES resist known attacks, why do cryptanalysts continue analyzing them?
Cryptanalysts study security margins: how many rounds an attack can reach, and how much the best attacks gain over exhaustive key search. Even when attacks on the full cipher fail, reduced-round results show where a design is closest to a weakness. Quantum computing may also affect the effective strength of symmetric keys, so key-length and cipher-choice guidance should be checked against current standards bodies.
What is the difference between differential and linear cryptanalysis?
Differential cryptanalysis tracks how an XOR difference between two plaintexts propagates through the rounds, and it is a chosen-plaintext attack. Linear cryptanalysis finds linear approximations relating plaintext, ciphertext and key bits, and uses statistical correlation over known plaintext-ciphertext pairs, so it is a known-plaintext attack. The two exploit different structures, so resistance to one does not imply resistance to the other.
Are side-channel attacks considered cryptanalysis?
Side-channel attacks (timing, power consumption, electromagnetic emissions) exploit implementation vulnerabilities rather than algorithmic weaknesses. While distinct from classical cryptanalysis, they are evaluated in the same security framework. A strong algorithm with poor implementation can be broken via side-channel attacks, making both algorithmic and implementation security critical.
Is DES still secure for any applications?
Single DES is considered broken and should not be used. Triple-DES is a legacy option: it is slower than AES and is kept only where existing systems depend on it. New systems should use AES or another currently vetted algorithm, and current guidance from the relevant standards body for your sector should be checked.
Related methods
Sources
Biham, E., & Shamir, A. (1991). Differential cryptanalysis of DES. Journal of Cryptology, 4(1), 3–72.
Open publication referenceMatsui, M. (1993). Linear cryptanalysis method for DES cipher. Advances in Cryptology – EUROCRYPT '93, 386–397.
Open DOI referenceDaemen, J., & Rijmen, V. (2002). The Design of Rijndael: AES—The Advanced Encryption Standard. Springer-Verlag.
Open publication reference