public override int Read( byte[] buffer, int offset, int count) { int n = stream.Read(buffer, offset, count); if (inDigest != null) { if (n > 0) { inDigest.BlockUpdate(buffer, offset, n); } } return n; }