1 write to _symmetricAlgorithmBlockSizeInBytes
Microsoft.AspNetCore.DataProtection (1)
Managed\ManagedAuthenticatedEncryptor.cs (1)
55_symmetricAlgorithmBlockSizeInBytes = symmetricAlgorithm.GetBlockSizeInBytes();
13 references to _symmetricAlgorithmBlockSizeInBytes
Microsoft.AspNetCore.DataProtection (13)
Managed\ManagedAuthenticatedEncryptor.cs (13)
68AlgorithmAssert.IsAllowableSymmetricAlgorithmBlockSize(checked((uint)_symmetricAlgorithmBlockSizeInBytes * 8)); 82if (ciphertext.Length < checked(KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes + _validationAlgorithmDigestLengthInBytes)) 88var estimatedDecryptedSize = ciphertext.Length - (KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes + _validationAlgorithmDigestLengthInBytes); 96var ciphertextOffset = ivOffset + _symmetricAlgorithmBlockSizeInBytes; 142var iv = ciphertext.Slice(ivOffset, _symmetricAlgorithmBlockSizeInBytes); 175var ivLength = _symmetricAlgorithmBlockSizeInBytes; 289var outputSize = KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes /* IV */ + cipherTextLength + _validationAlgorithmDigestLengthInBytes /* MAC */; 468var outputSize = protectedPayload.Count - (KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes + _validationAlgorithmDigestLengthInBytes); 600+ _symmetricAlgorithmBlockSizeInBytes /* ciphertext of encrypted empty string */ 611BitHelpers.WriteTo(retVal, ref idx, _symmetricAlgorithmBlockSizeInBytes); 634rgbIV: new byte[_symmetricAlgorithmBlockSizeInBytes])) 637CryptoUtil.Assert(ciphertext != null && ciphertext.Length == _symmetricAlgorithmBlockSizeInBytes, "ciphertext != null && ciphertext.Length == _symmetricAlgorithmBlockSizeInBytes"); 642idx += _symmetricAlgorithmBlockSizeInBytes;