1 write to _symmetricAlgorithmBlockSizeInBytes
Microsoft.AspNetCore.DataProtection (1)
Managed\ManagedAuthenticatedEncryptor.cs (1)
60_symmetricAlgorithmBlockSizeInBytes = symmetricAlgorithm.GetBlockSizeInBytes();
13 references to _symmetricAlgorithmBlockSizeInBytes
Microsoft.AspNetCore.DataProtection (13)
Managed\ManagedAuthenticatedEncryptor.cs (13)
76AlgorithmAssert.IsAllowableSymmetricAlgorithmBlockSize(checked((uint)_symmetricAlgorithmBlockSizeInBytes * 8)); 100if (ciphertext.Length < checked(KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes + _validationAlgorithmDigestLengthInBytes)) 106var estimatedDecryptedSize = ciphertext.Length - (KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes + _validationAlgorithmDigestLengthInBytes); 114var ciphertextOffset = ivOffset + _symmetricAlgorithmBlockSizeInBytes; 160var iv = ciphertext.Slice(ivOffset, _symmetricAlgorithmBlockSizeInBytes); 193var ivLength = _symmetricAlgorithmBlockSizeInBytes; 305var outputSize = KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes /* IV */ + cipherTextLength + _validationAlgorithmDigestLengthInBytes /* MAC */; 480var outputSize = protectedPayload.Count - (KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes + _validationAlgorithmDigestLengthInBytes); 612+ _symmetricAlgorithmBlockSizeInBytes /* ciphertext of encrypted empty string */ 623BitHelpers.WriteTo(retVal, ref idx, _symmetricAlgorithmBlockSizeInBytes); 646rgbIV: new byte[_symmetricAlgorithmBlockSizeInBytes])) 649CryptoUtil.Assert(ciphertext != null && ciphertext.Length == _symmetricAlgorithmBlockSizeInBytes, "ciphertext != null && ciphertext.Length == _symmetricAlgorithmBlockSizeInBytes"); 654idx += _symmetricAlgorithmBlockSizeInBytes;