return checksum;
checksum = 0;
int numOneBits = 0; for (int i = 1; i < 256; i *= 2) { if ((b & i) != 0) numOneBits++; } checksum = (checksum + numOneBits) % 2;
for (int i = offset; i < offset+length; i++) { this.update(data[i]); }