1 write to _inputBlockSize
System.Security.Cryptography (1)
System\Security\Cryptography\CryptoStream.cs (1)
68
_inputBlockSize
= _transform.InputBlockSize;
22 references to _inputBlockSize
System.Security.Cryptography (22)
System\Security\Cryptography\CryptoStream.cs (22)
69
_inputBuffer = new byte[
_inputBlockSize
];
281
if (_inputBufferIndex + 1 <
_inputBlockSize
)
344
int numWholeBlocksInBytes = checked(blocksToProcess *
_inputBlockSize
);
357
if (totalInput >=
_inputBlockSize
)
366
int numWholeReadBlocks = bytesRead /
_inputBlockSize
;
367
int numWholeReadBlocksInBytes = numWholeReadBlocks *
_inputBlockSize
;
425
while (_inputBufferIndex <
_inputBlockSize
)
428
await _stream.ReadAsync(new Memory<byte>(_inputBuffer, _inputBufferIndex,
_inputBlockSize
- _inputBufferIndex), cancellationToken).ConfigureAwait(false) :
429
_stream.Read(_inputBuffer, _inputBufferIndex,
_inputBlockSize
- _inputBufferIndex);
544
if (buffer.Length >=
_inputBlockSize
- _inputBufferIndex)
547
buffer.Slice(0,
_inputBlockSize
- _inputBufferIndex).CopyTo(_inputBuffer.AsMemory(_inputBufferIndex));
548
currentInputIndex += (
_inputBlockSize
- _inputBufferIndex);
549
bytesToWrite -= (
_inputBlockSize
- _inputBufferIndex);
550
_inputBufferIndex =
_inputBlockSize
;
567
if (_inputBufferIndex ==
_inputBlockSize
)
570
numOutputBytes = _transform.TransformBlock(_inputBuffer, 0,
_inputBlockSize
, _outputBuffer, 0);
582
if (bytesToWrite >=
_inputBlockSize
)
585
int numWholeBlocks = bytesToWrite /
_inputBlockSize
;
590
int numWholeBlocksInBytes = numWholeBlocks *
_inputBlockSize
;
626
numOutputBytes = TransformBlock(_transform, buffer.Slice(currentInputIndex,
_inputBlockSize
), _outputBuffer, 0);
633
currentInputIndex +=
_inputBlockSize
;
634
bytesToWrite -=
_inputBlockSize
;