Tous les livres

Professionnel

Applis À propos Coach Connexion Commencer la lecture

Computer Science · Glossaire

Qu'est-ce que « Merkle–Damgård construction, length-extension attack » ?

Aussi appelé : Merkle--Damgård construction · length-extension attack

Definition 27.9 University Computer Science — Year 3 · Chapitre 27 — Symmetric Cryptography and Hash Functions

The Merkle–Damgård construction hashes a message by padding it to whole blocks, with its length in the last one, and running a compression function ff along the blocks: h0h_0 is a fixed initial value, hi=f(hi−1,Mi)h_i = f(h_{i-1}, M_i), and the digest is hnh_n. A length-extension attack uses H(m)H(m) and the length of mm, without mm, to compute H(m ∥ pad ∥ m′)H(m \,\|\, \mathit{pad} \,\|\, m') for any m′m', by continuing the chain from hnh_n.

The Merkle–Damgård chain of H(k \,\|\, m), and its continuation. The tag is the whole state after the last block, so anyone who knows it can hash further blocks; the result is the tag of k \,\|\, m \,\|\, pad \,\|\, m'.
The Merkle–Damgård chain of H(k ∥ m)H(k \,\|\, m), and its continuation. The tag is the whole state after the last block, so anyone who knows it can hash further blocks; the result is the tag of k ∥ m ∥ pad ∥ m′k \,\|\, m \,\|\, \mathit{pad} \,\|\, m'.
Lire dans le chapitre →