Revert "crc calculated on a buffer"

This reverts commit 4a6f75f79fef6f29126de10891f2d93cf4f6b022.