Overview
Merkle-Damgard construction processes padded blocks sequentially, feeding each chaining value into the next compression step.
Builds a hash function by chaining a compression function over message blocks.
Compact metadata for implementation and discovery.
Merkle-Damgard construction processes padded blocks sequentially, feeding each chaining value into the next compression step.
Quick facts
Runtime and memory behavior at a glance.
Best
O(n)
Average
O(n)
Worst
O(n)
Space
O(1)
H_i = compress(H_{i-1}, block_i)Updates the hash state one message block at a time.
Show the major cryptographic rounds or data dependencies without exposing secrets.
Merkle-Damgard hashes need careful padding and can have length-extension behavior unless the construction or use accounts for it.
What each reference supports for this entry.
Reference text for classical cryptographic constructions, block ciphers, hash constructions, and security properties.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Tree hashing organizes hash combinations differently from a linear Merkle-Damgard chain.
SHA-256 is an example of a Merkle-Damgard-style hash construction.