Open In App

Davies-Meyer Hash Function

Pre-requisites:  Merkle-Damgard construction

A Merkle-Damgard construction for collision-resistant hash functions required us to design a fixed-length, collision-resistant compression function (h) first.



Now the question arises, how do we construct ‘h’, such that h:{0, 1}l+n -> {0, 1}n.

There are two approaches:



This brings us to Davies-Meyer construction, It uses a block cipher that essentially is a keyed Pseudo Random Permutation (PRP).

Block Cipher

Using this, we construct the iterated Davies-Meyer compression function (hDM) as follows:

Davies-Meyer Construction

Properties:

Article Tags :