Most hash algorithms use block mode to process; that is, they process all input in set blocks of data such as 512-bit blocks. The final hash is typically generated by adding the output blocks together to form the final output string of 160 or 512 bits.
- Chapter 5 Cryptography
- from Principles of Computer Security: CompTIA Security+ and Beyond, Fifth Edition, 5th Edition
- Publisher: McGraw-Hill
- Released: June 2018
Is adding the values truly appropriate. If the hash for each block is random, the sum of all of the will be close to the midpoint of the range. Perhaps this was meant to append the bits for each block into a series of 160 or 512 bits values. The values could be added or X-Ored to provide a more random value.