Content deleted Content added
m Fix grammar |
m Fox grammar |
||
Line 51:
It feeds each block of the message (m<sub>i</sub>) as the cleartext to be encrypted. The output ciphertext is then XORed (<math>\oplus</math>) with the same message block (m<sub>i</sub>) and then also XORed with the previous hash value (H<sub>i-1</sub>) to produce the next hash value (H<sub>i</sub>). The previous hash value (H<sub>i-1</sub>) is fed as the key to the block cipher. In the first round when there is no previous hash value it uses a constant pre-specified initial value (H<sub>0</sub>).
If the block cipher
<math>H_i = E_{g(H_{i-1})}(m_i)\oplus H_{i-1}\oplus m_i</math>
|