コンテンツにスキップ

利用者:Eshiho/sandbox

piling-up lemma とは、暗号解読方法の一つで、主に線形解読法においてブロック暗号線形近似式を構築する際に利用される。 これは松井充(1993)により線形解読法の解析手法の一つとして導入された。

理論[編集]

piling-up lemmaは以下の等式が成立する確率を決定することを可能にする:

ここで、Xは二値変数(0または1のみを保持する)である。

P(A)を「Aが真となる確率」と定義する。もし1ならAは確実に起こり、0であればAは起きない。 まず、2変数の場合についてpiling-up lemmaを考える。この時、かつとする。

ここで、以下の式について考える。

この式はXORの性質から

に等しい。

X1 = X2 = 0 と X1 = X2 = 1はそれぞれ相互に排他的である。よって、以下が言える。

ここで、「それぞれの二値変数は独立である。」と仮定する。 Now, we must make the central assumption of the piling-up lemma: the binary variables we are dealing with are independent; すると、ある1つの確率は他のいずれの確率にも影響を及ぼさない。よって、我々はこの確率関数を以下のように拡張することができる。 that is, the state of one has no effect on the state of any of the others. Thus we can expand the probability function as follows:

Now we express the probabilities p1 and p2 as ½ + ε1 and ½ + ε2, where the ε's are the probability biases — the amount the probability deviates from ½.

Thus the probability bias ε1,2 for the XOR sum above is 2ε1ε2.

This formula can be extended to more X 's as follows:

Note that if any of the ε's is zero; that is, one of the binary variables is unbiased, the entire probability function will be unbiased — equal to ½.

A related slightly different definition of the bias is in fact minus two times the previous value. The advantage is that now with

we have

adding random variables amounts to multiplying their (2nd definition) biases.

Practice[編集]

In practice, the Xs are approximations to the S-boxes (substitution components) of block ciphers. Typically, X values are inputs to the S-box and Y values are the corresponding outputs. By simply looking at the S-boxes, the cryptanalyst can tell what the probability biases are. The trick is to find combinations of input and output values that have probabilities of zero or one. The closer the approximation is to zero or one, the more helpful the approximation is in linear cryptanalysis.

However, in practice, the binary variables are not independent, as is assumed in the derivation of the piling-up lemma. This consideration has to be kept in mind when applying the lemma; it is not an automatic cryptanalysis formula.

References[編集]

  • Matsui, Mitsuru (1994). “Linear Cryptanalysis Method for DES Cipher”. Advances in Cryptology—EUROCRYPT ’93. Springer. pp. 386–397. doi:10.1007/3-540-48285-7_33