SYSV checksum
The SYSV checksum algorithm was a commonly used, legacy checksum algorithm.[src] It has been implemented in UNIX System V and is also available through the sum command line utility.[src] This algorithm is useless on a security perspective, and is weaker than the CRC-32 cksum for error detection.[src]
The SYSV checksum algorithm was a commonly used, legacy checksum algorithm.[src] It has been implemented in UNIX System V and is also available through the sum command line utility.[src] This algorithm is useless on a security perspective, and is weaker than the CRC-32 cksum for error detection.[src] ==Description of the algorithm== The main part of this algorithm is simply adding up all bytes in a 32-bit sum.[src] As a result, this algorithm has the characteristics of a simple sum: re-arranging the same bytes in another order (e.g.[src] moving text from one place to another place) does not change the checksum.[src] increasing one byte and decreasing another byte by the same amount does not change the checksum.[src] adding or removing zero bytes does not change the checksum.[src] As a result, many common changes to text data are not detected by this method.[src] The FreeBSD pseudocode for this algorithm is: s = sum of all bytes; r = s % 2^16 + (s % 2^32) / 2^16; cksum = (r % 2^16) + r / 2^16; The last part folds the value into 16 bits.[src] ==References== ==Sources== official GNU sum manual page GNU sum source code[src]
14 sentences · 14 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"SYSV checksum." encyclopegia.org, 2023, https://encyclopegia.org/wiki/sysv-checksum. Accessed 03 December 2026.
Chicago
"SYSV checksum." encyclopegia.org. Accessed December 3, 2026. https://encyclopegia.org/wiki/sysv-checksum.
APA
encyclopegia.org. (2023). SYSV checksum. Retrieved December 3, 2026, from https://encyclopegia.org/wiki/sysv-checksum
Accessed December 3, 2026 · CC BY-SA 4.0 · citation page · JSON