Implement checksum generator and tests.