1 write to _symmetricAlgorithmBlockSizeInBytes
Microsoft.AspNetCore.DataProtection (1)
Managed\ManagedAuthenticatedEncryptor.cs (1)
50_symmetricAlgorithmBlockSizeInBytes = symmetricAlgorithm.GetBlockSizeInBytes();
10 references to _symmetricAlgorithmBlockSizeInBytes
Microsoft.AspNetCore.DataProtection (10)
Managed\ManagedAuthenticatedEncryptor.cs (10)
63AlgorithmAssert.IsAllowableSymmetricAlgorithmBlockSize(checked((uint)_symmetricAlgorithmBlockSizeInBytes * 8)); 82+ _symmetricAlgorithmBlockSizeInBytes /* ciphertext of encrypted empty string */ 93BitHelpers.WriteTo(retVal, ref idx, _symmetricAlgorithmBlockSizeInBytes); 115rgbIV: new byte[_symmetricAlgorithmBlockSizeInBytes])) 118CryptoUtil.Assert(ciphertext != null && ciphertext.Length == _symmetricAlgorithmBlockSizeInBytes, "ciphertext != null && ciphertext.Length == _symmetricAlgorithmBlockSizeInBytes"); 123idx += _symmetricAlgorithmBlockSizeInBytes; 165if (protectedPayload.Count < checked(KEY_MODIFIER_SIZE_IN_BYTES + _symmetricAlgorithmBlockSizeInBytes + _validationAlgorithmDigestLengthInBytes)) 186ciphertextOffset = ivOffset + _symmetricAlgorithmBlockSizeInBytes; 190var iv = new byte[_symmetricAlgorithmBlockSizeInBytes]; 293var iv = _genRandom.GenRandom(_symmetricAlgorithmBlockSizeInBytes);