ArticleslgStudy

computer science

Partial-matching meet-in-the-middle attack

Partial-matching meet-in-the-middle 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 Partial-matching meet-in-the-middle attack rather than just read about it. In short: Partial-matching is a technique that can be used with a MITM attack. Partial-matching is where the intermediate values of the MITM attack, i {\displaystyle i} and j {\displaystyle j} , computed from the plaintext and ciphertext, are matched on only a few select bits, instead of on the complete state.

Key takeaways

  • Partial-matching meet-in-the-middle 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 Partial-matching meet-in-the-middle attack to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Partial-matching meet-in-the-middle attack from memory before moving on to harder problems.

Reference excerpt

Partial-matching is a technique that can be used with a MITM attack. Partial-matching is where the intermediate values of the MITM attack, i {\displaystyle i} and j {\displaystyle j} , computed from the plaintext and ciphertext, are matched on only a few select bits, instead of on the complete state.

Uses A limitation with MITM attacks is the amount of intermediate values that needs to be stored. In order to compare the intermediate values i {\displaystyle i} and j {\displaystyle j} , all i {\displaystyle i} 's need to be computed and stored first, before each computed j {\displaystyle j} can be compared against them. If the two subciphers identified by the MITM attack both has a sufficiently large subkey, then an unfeasible amount of intermediate values need to be stored. While there are techniques such as cycle detection algorithms that allows one to perform a MITM attack without storing either all values of i {\displaystyle i} or j {\displaystyle j} , these techniques requires that the subciphers of the MITM attack are symmetric. Thus it is a solution that allows one to perform a MITM attack in a situation, where the subkeys are of a cardinality just large enough to make the amount of temporary values that need to be stored infeasible. While this allows one to store more temporary values, its use is still limited, as it only allows one to perform a MITM attack on a subcipher with a few more bits. As an example: If only 1/8 of the intermediate value is stored, then the subkey needs only be 3 bits larger, before the same amount of memory is required anyway, since 2 − 3 = 1 / 8 {\displaystyle 2^{-3}=1/8}

A in most cases far more useful feature provided by partial-matching in MITM attacks, is the ability to compare intermediate values computed at different rounds in the attacked cipher. If the diffusion in each round of the cipher is low enough, it might be possible over a span of rounds to find bits in the intermediate states that has not changed with a probability of 1. These bits in the intermediate states can still be compared. The disadvantage for both of these uses, is that there will be more false positives for key candidates, which needs to be tested. As a rule, the chance for a false positive is given by the probability 2 − | i | {\displaystyle 2^{-|i|}} , where | i | {\displaystyle |i|} is the amount of matched bits.

Example For a step-by-step example of the complete attack on KTANTAN, see the example on the 3-subset MITM page. This example only deals with the part that needs partial-matching. What is useful to know is that KTANTAN is a 254-round blockcipher, where each round uses 2 bits from the 80-bit key. In the 3-subset attack on the KTANTAN family of ciphers, it was necessary to utilize partial-matching in order to stage the attack. Partial-matching was needed, because the intermediate values of the plain- and ciphertext in the MITM attack, were computed at the end of round 111 and at the start of round 131, respectively. Since they had a span of 20 rounds between them, they could not be compared directly. The authors of the attack, however, identified some useful characteristics of KTANTAN that held with a probability of 1. Due to the low diffusion per round in KTANTAN (the security is in the number of rounds), they found out by computing forwards from round 111 and backwards from round 131 that at round 127, 8 bits from both intermediate states would remain unchanged. (It was 8 bits at round 127 for KTANTAN32. It was 10 bits at round 123 and 47 bits at round 131 for KTANTAN48 and KTANTAN64, respectively). by only comparing the 8 bits of each intermediate value, the authors was able to orchestrate a MITM attack on the cipher, despite there being 20 rounds between the two subciphers. Using partial-matching increased the amount of false positives, but nothing that noticeably increased the complexity of the attack.

Notes

Worked examples

Example 1 — a first encounter with Partial-matching meet-in-the-middle attack

Start with the simplest possible case. Write down what Partial-matching meet-in-the-middle 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 Partial-matching meet-in-the-middle 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 Partial-matching meet-in-the-middle 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 Partial-matching meet-in-the-middle attack

In research
Partial-matching meet-in-the-middle 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 Partial-matching meet-in-the-middle 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
Partial-matching meet-in-the-middle 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 Partial-matching meet-in-the-middle 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.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Partial-matching meet-in-the-middle attack” →

Affiliate

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

How to study Partial-matching meet-in-the-middle attack in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Partial-matching meet-in-the-middle 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 Partial-matching meet-in-the-middle attack out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Partial-matching meet-in-the-middle attack in simple terms?

Partial-matching is a technique that can be used with a MITM attack. Partial-matching is where the intermediate values of the MITM attack, i {\displaystyle i} and j {\displaystyle j} , computed from the plaintext and ciphertext, are matched on only a few select bits, instead of on the complete stat…

Why does Partial-matching meet-in-the-middle 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 Partial-matching meet-in-the-middle 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 Partial-matching meet-in-the-middle attack.

Tags

  • Cryptographic attacks

Keep exploring