crc calculated on a buffer