public override void Write(byte[] buffer, int offset, int count) { ThrowIfClosed(); byte[] cryptBuffer = (byte[])buffer.Clone(); hash.TransformBlock(cryptBuffer, offset, count, cryptBuffer, 0); tempStream.Write(buffer, offset, count); }