Research Library · Idea
Linear cryptanalysis
Linear cryptanalysis is a known-plaintext attack that uses a linear relation, an XOR of selected plaintext, ciphertext and key bits, that holds with a probability measurably different from 1/2. Mitsuru Matsui introduced it at EUROCRYPT '93. He built linear approximations of individual DES S-boxes, chained them across rounds, and computed the combined probability with a result he named the piling-up lemma. The paper reported breaking 8-round DES with 2^21 known plaintexts and 16-round DES with 2^47. It also noted that if the plaintexts were English text in ASCII, 8-round DES could be broken from 2^29 ciphertexts alone. 1
In 1994 Matsui published an improved version that uses two linear approximations, each giving candidates for 13 key bits. He used it for the first experimental break of the full 16-round DES. Twelve computers recovered all 56 key bits in fifty days, forty of which went to generating the plaintexts and ciphertexts. He gave the success rate as 85% with 2^43 known plaintexts. 2
The data required grows with the inverse square of the bias, the amount by which the relation's probability differs from 1/2. Heys's tutorial approximates the number of known plaintexts as 1/e^2 for bias e. 3 The bias of a multi-round approximation is usually estimated by multiplying S-box biases under an independence assumption. Heys cautions that the S-box approximations are not truly independent. Several approximations with the same plaintext and last-round masks also combine into a linear hull, which can have a much larger bias than any single path suggests. 3 Kaisa Nyberg introduced the approximate linear hull in 1994. She showed that the success of Matsui's Algorithm 2 had been underestimated and showed how to achieve proven resistance to the attack. 4
Coppersmith, of the IBM team that designed DES, wrote in 1994 that Matsui's attack was a huge logistical problem and not a viable threat against DES. He added that, to the best of his recollection, a stronger S-box criterion against it was not part of the DES design. 5 Later work combines several approximations at once. Cho's multidimensional linear attack on reduced-round PRESENT is one example. 6
Source · Linear Cryptanalysis Method for DES Cipher (Mitsuru Matsui) (opens in a new tab) · Springer
References
- Linear Cryptanalysis Method for DES Cipher (Mitsuru Matsui) (opens in a new tab) · Springer · EUROCRYPT 1993, LNCS 765, pp. 386-397. ↩
- The First Experimental Cryptanalysis of the Data Encryption Standard (Mitsuru Matsui) (opens in a new tab) · Springer · CRYPTO 1994, LNCS 839. ↩
- A Tutorial on Linear and Differential Cryptanalysis (Howard M. Heys) (opens in a new tab) · Memorial University of Newfoundland ↩ ↩
- Linear Approximation of Block Ciphers (Kaisa Nyberg) (opens in a new tab) · Springer · EUROCRYPT 1994, LNCS 950. ↩
- The Data Encryption Standard (DES) and its strength against attacks (Don Coppersmith) (opens in a new tab) · IBM Journal of Research and Development · Vol. 38 no. 3, May 1994. ↩
- Linear Cryptanalysis of Reduced-Round PRESENT (Joo Yeon Cho) (opens in a new tab) · IACR Cryptology ePrint Archive · CT-RSA 2010; abstract. ↩
Research articles
- Counting active S-boxes: differential and linear cryptanalysis, and why AES is built the way it is · Mathematics
In the news
- Vectorial Boolean Functions with High Linear and Differential Branch Numbers · IACR News ·
- Spectral Puncturing: Statistical Theory and Key Recovery for Full-Round PRESENT · IACR News ·
See what connects to it on the map of ideas →

SecSIG