ArticleslgStudy

computer science

Interpolation attack

Interpolation attack is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Interpolation attack rather than just read about it. In short: In cryptography, an interpolation attack is a type of cryptanalytic attack against block ciphers. After the two attacks, differential cryptanalysis and linear cryptanalysis, were presented on block ciphers, some new block ciphers were introduced, which were proven secure against differential and linear attacks.

Key takeaways

  • Interpolation attack belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Interpolation attack to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Interpolation attack from memory before moving on to harder problems.

Reference excerpt

In cryptography, an interpolation attack is a type of cryptanalytic attack against block ciphers. After the two attacks, differential cryptanalysis and linear cryptanalysis, were presented on block ciphers, some new block ciphers were introduced, which were proven secure against differential and linear attacks. Among these there were some iterated block ciphers such as the KN-Cipher and the SHARK cipher. However, Thomas Jakobsen and Lars Knudsen showed in the late 1990s that these ciphers were easy to break by introducing a new attack called the interpolation attack. In the attack, an algebraic function is used to represent an S-box. This may be a simple quadratic, or a polynomial or rational function over a Galois field. Its coefficients can be determined by standard Lagrange interpolation techniques, using known plaintexts as data points. Alternatively, chosen plaintexts can be used to simplify the equations and optimize the attack. In its simplest version an interpolation attack expresses the ciphertext as a polynomial of the plaintext. If the polynomial has a relative low number of unknown coefficients, then with a collection of plaintext/ciphertext (p/c) pairs, the polynomial can be reconstructed. With the polynomial reconstructed the attacker then has a representation of the encryption, without exact knowledge of the secret key. The interpolation attack can also be used to recover the secret key. It is easiest to describe the method with an example.

Example Let an iterated cipher be given by

c i = ( c i − 1 ⊕ k i ) 3 , {\displaystyle c_{i}=(c_{i-1}\oplus k_{i})^{3},}

where c 0 {\displaystyle c_{0}} is the plaintext, c i {\displaystyle c_{i}} the output of the i t h {\displaystyle i^{th}} round, k i {\displaystyle k_{i}} the secret i t h {\displaystyle i^{th}} round key (derived from the secret key K {\displaystyle K} by some key schedule), and for a r {\displaystyle r} -round iterated cipher, c r {\displaystyle c_{r}} is the ciphertext. Consider the 2-round cipher. Let x {\displaystyle x} denote the message, and c {\displaystyle c} denote the ciphertext. Then the output of round 1 becomes

c 1 = ( x + k 1 ) 3 = ( x 2 + k 1 2 ) ( x + k 1 ) = x 3 + k 1 2 x + x 2 k 1 + k 1 3 , {\displaystyle c_{1}=(x+k_{1})^{3}=(x^{2}+k_{1}^{2})(x+k_{1})=x^{3}+k_{1}^{2}x+x^{2}k_{1}+k_{1}^{3},}

and the output of round 2 becomes

c 2 = c = ( c 1 + k 2 ) 3 = ( x 3 + k 1 2 x + x 2 k 1 + k 1 3 + k 2 ) 3 {\displaystyle c_{2}=c=(c_{1}+k_{2})^{3}=(x^{3}+k_{1}^{2}x+x^{2}k_{1}+k_{1}^{3}+k_{2})^{3}}

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Interpolation attack

Start with the simplest possible case. Write down what Interpolation attack claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Interpolation attack before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Interpolation attack ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Interpolation attack

In research
Interpolation attack appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Interpolation attack in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Interpolation attack is common in secondary-school and first-year university syllabi. It links to neighbouring topics Cryptographic attacks, so understanding it makes those chapters shorter.
In everyday life
Look for Interpolation attack outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Interpolation attack in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Interpolation attack means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Interpolation attack out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Interpolation attack in simple terms?

In cryptography, an interpolation attack is a type of cryptanalytic attack against block ciphers. After the two attacks, differential cryptanalysis and linear cryptanalysis, were presented on block ciphers, some new block ciphers were introduced, which were proven secure against differential and li…

Why does Interpolation attack matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Interpolation attack?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Interpolation attack.

Tags

  • Cryptographic attacks

Keep exploring