3 writes to _inputBuffer
System.Security.Cryptography (3)
System\Security\Cryptography\CryptoStream.cs (3)
69
_inputBuffer
= new byte[_inputBlockSize];
788
_inputBuffer
= null!;
839
_inputBuffer
= null!;
23 references to _inputBuffer
System.Security.Cryptography (23)
System\Security\Cryptography\CryptoStream.cs (23)
146
byte[] finalBytes = _transform.TransformFinalBlock(
_inputBuffer
!, 0, _inputBufferIndex);
178
if (
_inputBuffer
!= null)
179
Array.Clear(
_inputBuffer
);
283
_inputBuffer
![_inputBufferIndex++] = value;
361
Buffer.BlockCopy(
_inputBuffer
, 0, tempInputBuffer, 0, _inputBufferIndex);
362
CryptographicOperations.ZeroMemory(new Span<byte>(
_inputBuffer
, 0, _inputBufferIndex));
373
Buffer.BlockCopy(tempInputBuffer, numWholeReadBlocksInBytes,
_inputBuffer
, 0, _inputBufferIndex);
411
Buffer.BlockCopy(tempInputBuffer, _inputBufferIndex,
_inputBuffer
, _inputBufferIndex, bytesRead);
428
await _stream.ReadAsync(new Memory<byte>(
_inputBuffer
, _inputBufferIndex, _inputBlockSize - _inputBufferIndex), cancellationToken).ConfigureAwait(false) :
429
_stream.Read(
_inputBuffer
, _inputBufferIndex, _inputBlockSize - _inputBufferIndex);
442
_outputBuffer = _transform.TransformFinalBlock(
_inputBuffer
, 0, _inputBufferIndex);
448
_outputBufferIndex = _transform.TransformBlock(
_inputBuffer
, 0, _inputBufferIndex, _outputBuffer, 0);
543
Debug.Assert(
_inputBuffer
!= null);
547
buffer.Slice(0, _inputBlockSize - _inputBufferIndex).CopyTo(
_inputBuffer
.AsMemory(_inputBufferIndex));
557
buffer.CopyTo(
_inputBuffer
.AsMemory(_inputBufferIndex));
569
Debug.Assert(
_inputBuffer
!= null && _outputBuffer != null);
570
numOutputBytes = _transform.TransformBlock(
_inputBuffer
, 0, _inputBlockSize, _outputBuffer, 0);
639
Debug.Assert(
_inputBuffer
!= null);
642
buffer.Slice(currentInputIndex, bytesToWrite).CopyTo(
_inputBuffer
);
783
if (
_inputBuffer
!= null)
784
Array.Clear(
_inputBuffer
);
829
if (
_inputBuffer
!= null)
831
Array.Clear(
_inputBuffer
);