The program checks the name in which it was called. If it is anything except ``cksum'', the output will default to BSD Historic Algorithm 1 unless otherwise specified. Otherwise, the default is CRC32 mode.
Algorithms 1 and 2 will round up to the next block count for partial blocks.
CRC 32 algorithm ported directly from OpenBSD cksum C source code.
md5sum