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)
49
if (!
_stream
.CanRead)
57
if (!
_stream
.CanWrite)
149
await
_stream
.WriteAsync(new ReadOnlyMemory<byte>(finalBytes), cancellationToken).ConfigureAwait(false);
153
_stream
.Write(finalBytes, 0, finalBytes.Length);
158
if (
_stream
is CryptoStream innerCryptoStream)
169
await
_stream
.FlushAsync(cancellationToken).ConfigureAwait(false);
173
_stream
.Flush();
188
_stream
.Flush();
204
_stream
.FlushAsync(cancellationToken);
351
await
_stream
.ReadAsync(new Memory<byte>(tempInputBuffer, _inputBufferIndex, numWholeBlocksInBytes - _inputBufferIndex), cancellationToken).ConfigureAwait(false) :
352
_stream
.Read(tempInputBuffer, _inputBufferIndex, numWholeBlocksInBytes - _inputBufferIndex);
428
await
_stream
.ReadAsync(new Memory<byte>(_inputBuffer, _inputBufferIndex, _inputBlockSize - _inputBufferIndex), cancellationToken).ConfigureAwait(false) :
429
_stream
.Read(_inputBuffer, _inputBufferIndex, _inputBlockSize - _inputBufferIndex);
573
await
_stream
.WriteAsync(new ReadOnlyMemory<byte>(_outputBuffer, 0, numOutputBytes), cancellationToken).ConfigureAwait(false);
575
_stream
.Write(_outputBuffer, 0, numOutputBytes);
602
await
_stream
.WriteAsync(new ReadOnlyMemory<byte>(tempOutputBuffer, 0, numOutputBytes), cancellationToken).ConfigureAwait(false);
606
_stream
.Write(tempOutputBuffer, 0, numOutputBytes);
629
await
_stream
.WriteAsync(new ReadOnlyMemory<byte>(_outputBuffer, 0, numOutputBytes), cancellationToken).ConfigureAwait(false);
631
_stream
.Write(_outputBuffer, 0, numOutputBytes);
771
_stream
.Dispose();
819
await
_stream
.DisposeAsync().ConfigureAwait(false);