public int CalculateDifference(Digest other, bool lengthDiff) { int difference = 0; if (lengthDiff) { difference += _lValue.CalculateDifference(other._lValue); } difference += _q.CalculateDifference(other._q); difference += _checksum.CalculateDifference(other._checksum); difference += _body.CalculateDiffence(other._body); return(difference); }