newBlockLen - lastchunksize, bytesPerChecksum, checksumSize);
byte[] b = new byte[Math.max(lastchunksize, checksumSize)];
// read last chunk
ra.seek(lastchunkoffset);
ra.readFully(b, 0, lastchunksize);
// compute checksum
dcs.update(b, 0, lastchunksize);
dcs.writeValue(b, 0, false);