1 write to _stream
System.Security.Cryptography (1)
System\Security\Cryptography\CryptoStream.cs (1)
42_stream = stream;
21 references to _stream
System.Security.Cryptography (21)
System\Security\Cryptography\CryptoStream.cs (21)
49if (!_stream.CanRead) 57if (!_stream.CanWrite) 149await _stream.WriteAsync(new ReadOnlyMemory<byte>(finalBytes), cancellationToken).ConfigureAwait(false); 153_stream.Write(finalBytes, 0, finalBytes.Length); 158if (_stream is CryptoStream innerCryptoStream) 169await _stream.FlushAsync(cancellationToken).ConfigureAwait(false); 173_stream.Flush(); 188_stream.Flush(); 204_stream.FlushAsync(cancellationToken); 351await _stream.ReadAsync(new Memory<byte>(tempInputBuffer, _inputBufferIndex, numWholeBlocksInBytes - _inputBufferIndex), cancellationToken).ConfigureAwait(false) : 352_stream.Read(tempInputBuffer, _inputBufferIndex, numWholeBlocksInBytes - _inputBufferIndex); 428await _stream.ReadAsync(new Memory<byte>(_inputBuffer, _inputBufferIndex, _inputBlockSize - _inputBufferIndex), cancellationToken).ConfigureAwait(false) : 429_stream.Read(_inputBuffer, _inputBufferIndex, _inputBlockSize - _inputBufferIndex); 573await _stream.WriteAsync(new ReadOnlyMemory<byte>(_outputBuffer, 0, numOutputBytes), cancellationToken).ConfigureAwait(false); 575_stream.Write(_outputBuffer, 0, numOutputBytes); 602await _stream.WriteAsync(new ReadOnlyMemory<byte>(tempOutputBuffer, 0, numOutputBytes), cancellationToken).ConfigureAwait(false); 606_stream.Write(tempOutputBuffer, 0, numOutputBytes); 629await _stream.WriteAsync(new ReadOnlyMemory<byte>(_outputBuffer, 0, numOutputBytes), cancellationToken).ConfigureAwait(false); 631_stream.Write(_outputBuffer, 0, numOutputBytes); 771_stream.Dispose(); 819await _stream.DisposeAsync().ConfigureAwait(false);