1 write to _symmetricAlgorithmBlockSizeInBytes
Microsoft.AspNetCore.DataProtection (1)
Managed\ManagedAuthenticatedEncryptor.cs (1)
52_symmetricAlgorithmBlockSizeInBytes = symmetricAlgorithm.GetBlockSizeInBytes();
11 references to _symmetricAlgorithmBlockSizeInBytes
Microsoft.AspNetCore.DataProtection (11)
Managed\ManagedAuthenticatedEncryptor.cs (11)
65AlgorithmAssert.IsAllowableSymmetricAlgorithmBlockSize(checked((uint)_symmetricAlgorithmBlockSizeInBytes * 8)); 84+ _symmetricAlgorithmBlockSizeInBytes /* ciphertext of encrypted empty string */ 95BitHelpers.WriteTo(retVal, ref idx, _symmetricAlgorithmBlockSizeInBytes); 118rgbIV: new byte[_symmetricAlgorithmBlockSizeInBytes])) 121CryptoUtil.Assert(ciphertext != null && ciphertext.Length == _symmetricAlgorithmBlockSizeInBytes, "ciphertext != null && ciphertext.Length == _symmetricAlgorithmBlockSizeInBytes"); 126idx += _symmetricAlgorithmBlockSizeInBytes; 173if (protectedPayload.Count < checked(KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes + _validationAlgorithmDigestLengthInBytes)) 191ciphertextOffset = ivOffset + _symmetricAlgorithmBlockSizeInBytes; 214: new byte[_symmetricAlgorithmBlockSizeInBytes]; 254var iv = protectedPayload.Array.AsSpan(ivOffset, _symmetricAlgorithmBlockSizeInBytes); 306var ivLength = _symmetricAlgorithmBlockSizeInBytes;