From: LoRd_MuldeR Date: Fri, 5 Jan 2018 19:47:37 +0000 (+0100) Subject: Updated algorithm description. X-Git-Tag: 1.2.0~44 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=68d5d7e990e5c4965a18bb15fe52fadaba3142c6;p=mhash384%2Fmhash384.git Updated algorithm description. --- diff --git a/README.md b/README.md index 45e1bf6..9377f5e 100644 --- a/README.md +++ b/README.md @@ -193,9 +193,8 @@ The MHash-384 algorithm can be summed up with the following simple pseudocode: begin /*initialization*/ ctr ← 0 - for i = 0 to HASH_SIZE-1 do - tmp_src[i], tmp_dst[i] ← TABLE_INI[0,i], TABLE_INI[1,i] - done + tmp_src ← TABLE_INI[0] + tmp_dst ← TABLE_INI[1] /*input message processing*/ for k = 0 to N-1 do @@ -204,7 +203,7 @@ The MHash-384 algorithm can be summed up with the following simple pseudocode: tmp_dst[i] ← tmp_dst[i] ⊕ TABLE_SBX[val,i] done ctr ← (ctr + 1) mod 256 - xchg tmp_src ⇄ tmp_dst + xchg(tmp_src ⇄ tmp_dst) done /*finalization*/