linear cryptanalysis (w3) Flashcards

(6 cards)

1
Q

what is linear cryptanalysis?

A

a category of attack launched against block ciphers

powerful attack, aims to approximate block ciphers by means of linear expressions

these expressions are true or false with some bias

we can use this bias to discover key bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

how can bias in S-boxes be used to “guess” keys?

A
  1. Determine biases of S-boxes,
    construct LAT
  2. Approximate each S-box with
    (biased) linear expression.
  3. Link expressions from initial
    plaintext to intermediate
    ciphertext.
  4. Determine bias for linked
    expressions via Matsui’s
    Lemma.
  5. For the final subkeys, determine
    how often expressions holds - if
    it matches bias, you have
    discovered the key!
  6. Repeat for each subkey.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

key points from linear relations table for S-boxes:

A
  • The expressions in columns involve either inputs or outputs (but not both).
  • The number of agreements between some input expression and some output expression is calculated for the S-box.
  • If the number of agreements and disagreements is not equal, then if we know the value of the output expression, we have information on the likely value of the input expression (without doing extra work).
  • Thus we would expect the indicated expression
    X3 XOR X4 = Y1 XOR Y4
    to be true 2/16 of the time, i.e., X3 XOR X4 != Y1 XOR Y4 with probability
    14/16.
    So if you know Y1 XOR Y4 you can take a very good guess at the value
    of X3 XOR X4
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is Matsui’s Piling Up Lemma?

A
  • Matsui’s formula to estimate the bias that the derived expression will hold generally.
  • There is a formula that will enable us to apply the ideas we have encountered to more complex systems with many substitution boxes.
  • For n binary independent (potentially biased) random variables Z1,…, Zn:
    Pr(Z1 XOR Z2 XOR … Zn = 0) = 0.5 + 2n - 1 Π(n)(i=1)εi
    *biases represented by ε1…εn
  • Logically if even one Zi is unbiased (εi = 0), then
    Pr(Z1 XOR Z2 XOR … Zn = 0) = 0.5
  • Can prove this formula via induction
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what happens with Matsui’s Piling Up Lemma if one of the variables is genuinely unbiased?

A
  • If just one of the variables in the sum is genuinely unbiased
    then so is the XOR sum of the two variables.
  • Effectively randomizes Z1 XOR Z2
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

what type of attack is linear cryptanalysis?

A

known plaintext attack (KPA)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly