1 write to _symmetricAlgorithmSubkeyLengthInBytes
Microsoft.AspNetCore.DataProtection (1)
Managed\ManagedAuthenticatedEncryptor.cs (1)
56_symmetricAlgorithmSubkeyLengthInBytes = symmetricAlgorithmKeySizeInBytes;
13 references to _symmetricAlgorithmSubkeyLengthInBytes
Microsoft.AspNetCore.DataProtection (13)
Managed\ManagedAuthenticatedEncryptor.cs (13)
69AlgorithmAssert.IsAllowableSymmetricAlgorithmKeySize(checked((uint)_symmetricAlgorithmSubkeyLengthInBytes * 8)); 122Span<byte> decryptionSubkey = _symmetricAlgorithmSubkeyLengthInBytes <= 128 123? stackalloc byte[128].Slice(0, _symmetricAlgorithmSubkeyLengthInBytes) 124: new byte[_symmetricAlgorithmSubkeyLengthInBytes]; 220Span<byte> encryptionSubkey = _symmetricAlgorithmSubkeyLengthInBytes <= 128 221? stackalloc byte[128].Slice(0, _symmetricAlgorithmSubkeyLengthInBytes) 222: new byte[_symmetricAlgorithmSubkeyLengthInBytes]; 620BitHelpers.WriteTo(retVal, ref idx, _symmetricAlgorithmSubkeyLengthInBytes); 628var tempKeys = new byte[_symmetricAlgorithmSubkeyLengthInBytes + _validationAlgorithmSubkeyLengthInBytes]; 634operationSubkey: tempKeys.AsSpan(0, _symmetricAlgorithmSubkeyLengthInBytes), 635validationSubkey: tempKeys.AsSpan(_symmetricAlgorithmSubkeyLengthInBytes, _validationAlgorithmSubkeyLengthInBytes)); 643rgbKey: new ArraySegment<byte>(tempKeys, 0, _symmetricAlgorithmSubkeyLengthInBytes).AsStandaloneArray(), 655using (var hashAlg = CreateValidationAlgorithm(new ArraySegment<byte>(tempKeys, _symmetricAlgorithmSubkeyLengthInBytes, _validationAlgorithmSubkeyLengthInBytes).AsStandaloneArray()))