private UInt32 AddChecksum(byte[] allBytes) { UInt32 retval = 0; foreach (byte b in allBytes) { retval += b; } return retval; }