Updates the checksum with the data ByteArray in the range offset and len. And returns the updated checksum.