One-way compression function: Difference between revisions

Content deleted Content added
Miyaguchi-Preneel: Made a svg image instead, first time ever!
More images changed to svg.
Line 11:
 
== Davies-Meyer ==
[[Image:Davies-Meyer hash.pngsvg|thumb|230px|right|The Davies-Meyer hash construction]]
The Davies-Meyer hash construction feeds each block of the message (m<sub>i</sub>) as the key to the block cipher. It feeds the previous hash value (H<sub>i-1</sub>) as the cleartext to be encrypted. The output ciphertext is then also [[exclusive-or|XORed]] (<math>\oplus</math>) with the previous hash value (H<sub>i-1</sub>) to produce the next hash value (H<sub>i</sub>). In the first round when there is no previous hash value it uses a constant pre-specified initial value (H<sub>0</sub>).
 
Line 24:
<br style="clear:both"/>
== Matyas-Meyer-Oseas ==
[[Image:Matyas-Meyer-Oseas hash.pngsvg|thumb|230px|right|The Matyas-Meyer-Oseas hash construction]]
The Matyas-Meyer-Oseas hash construction can be considered the dual (the opposite) of Davies-Meyer.