Overview
Linear cryptanalysis is a class of cryptanalytic techniques that seeks affine (linear plus constant) relationships among bits of a cipher's input, output and key. Working primarily against block ciphers but applicable to some stream constructions, it treats a cipher as a black box and uses statistical deviations from random behaviour to gain information about key bits. In the study of cryptography it is considered one of the primary generic attacks alongside differential cryptanalysis.
How it works
The attack identifies linear expressions over GF(2) — typically XOR sums of selected plaintext, ciphertext and key bits — whose probability of holding is slightly different from one half. By collecting many known plaintext–ciphertext pairs the attacker measures the bias from random and exploits it to rank candidate keys. Components such as substitution boxes (S-boxes) are examined for approximations that produce nonzero correlations. When several approximations combine through multiple rounds, their biases can amplify, forming what is called a linear hull. Many practical attacks use statistical hypothesis testing and key ranking heuristics to identify probable key bits for a final exhaustive check. Linear techniques are most naturally applied to block ciphers, but adaptations exist for other constructions.
History and development
The modern formulation of linear cryptanalysis emerged in the early 1990s and was popularized by research that demonstrated practical weaknesses in widely used designs. Since that time, researchers have proposed a number of refinements: combining multiple linear approximations, using weighted sums of approximations, and integrating nonlinear expressions into the analysis. Variants and hybrid methods have also been adapted to target stream ciphers and reduced-round versions of many algorithms.
Defenses and practical considerations
Successful linear attacks typically require a large volume of known or chosen plaintexts and rely on measurable biases that are small for well-designed components. Cipher designers therefore aim to minimize linear correlations in S-boxes, use diffusion layers and key schedules that disrupt exploitable linear structures, and demonstrate empirical or theoretical resistance. Evidence that a new cipher resists linear cryptanalysis is commonly expected in modern design evaluations.
Variants, importance and distinctions
Practical deployments of linear cryptanalysis often combine several techniques. Common refinements include:
- Using multiple approximations with weighted contributions to reduce data complexity.
- Analyzing linear hulls that accumulate correlations across many trails.
- Incorporating non-linear indicator functions to target specific cipher features.
As a statistical, known-plaintext style attack, linear cryptanalysis differs from algebraic or brute-force methods by exploiting tiny systematic departures from randomness rather than solving explicit equations. It remains a central tool for evaluating and comparing cipher security, and references or further technical discussions are often cited in design and standardization literature (see cryptanalysis surveys and algorithm papers at cryptography resources).
For additional introductions and technical expositions, there are many survey articles and textbooks that treat linear methods alongside other analytic approaches; practitioners often cross-reference materials linked in standards and academic reviews (block cipher studies, stream cipher treatments).