1 write to _symmetricAlgorithmSubkeyLengthInBytes
Microsoft.AspNetCore.DataProtection (1)
Managed\ManagedAuthenticatedEncryptor.cs (1)
61_symmetricAlgorithmSubkeyLengthInBytes = symmetricAlgorithmKeySizeInBytes;
13 references to _symmetricAlgorithmSubkeyLengthInBytes
Microsoft.AspNetCore.DataProtection (13)
Managed\ManagedAuthenticatedEncryptor.cs (13)
77AlgorithmAssert.IsAllowableSymmetricAlgorithmKeySize(checked((uint)_symmetricAlgorithmSubkeyLengthInBytes * 8)); 130Span<byte> decryptionSubkey = _symmetricAlgorithmSubkeyLengthInBytes <= 128 131? stackalloc byte[128].Slice(0, _symmetricAlgorithmSubkeyLengthInBytes) 132: new byte[_symmetricAlgorithmSubkeyLengthInBytes]; 242Span<byte> encryptionSubkey = _symmetricAlgorithmSubkeyLengthInBytes <= 128 243? stackalloc byte[128].Slice(0, _symmetricAlgorithmSubkeyLengthInBytes) 244: new byte[_symmetricAlgorithmSubkeyLengthInBytes]; 643BitHelpers.WriteTo(retVal, ref idx, _symmetricAlgorithmSubkeyLengthInBytes); 651var tempKeys = new byte[_symmetricAlgorithmSubkeyLengthInBytes + _validationAlgorithmSubkeyLengthInBytes]; 657operationSubkey: tempKeys.AsSpan(0, _symmetricAlgorithmSubkeyLengthInBytes), 658validationSubkey: tempKeys.AsSpan(_symmetricAlgorithmSubkeyLengthInBytes, _validationAlgorithmSubkeyLengthInBytes)); 666rgbKey: new ArraySegment<byte>(tempKeys, 0, _symmetricAlgorithmSubkeyLengthInBytes).AsStandaloneArray(), 678using (var hashAlg = CreateValidationAlgorithm(new ArraySegment<byte>(tempKeys, _symmetricAlgorithmSubkeyLengthInBytes, _validationAlgorithmSubkeyLengthInBytes).AsStandaloneArray()))