1 write to _symmetricAlgorithmSubkeyLengthInBytes
Microsoft.AspNetCore.DataProtection (1)
Managed\ManagedAuthenticatedEncryptor.cs (1)
53_symmetricAlgorithmSubkeyLengthInBytes = symmetricAlgorithmKeySizeInBytes;
12 references to _symmetricAlgorithmSubkeyLengthInBytes
Microsoft.AspNetCore.DataProtection (12)
Managed\ManagedAuthenticatedEncryptor.cs (12)
66AlgorithmAssert.IsAllowableSymmetricAlgorithmKeySize(checked((uint)_symmetricAlgorithmSubkeyLengthInBytes * 8)); 94BitHelpers.WriteTo(retVal, ref idx, _symmetricAlgorithmSubkeyLengthInBytes); 102var tempKeys = new byte[_symmetricAlgorithmSubkeyLengthInBytes + _validationAlgorithmSubkeyLengthInBytes]; 108operationSubkey: tempKeys.AsSpan(0, _symmetricAlgorithmSubkeyLengthInBytes), 109validationSubkey: tempKeys.AsSpan(_symmetricAlgorithmSubkeyLengthInBytes, _validationAlgorithmSubkeyLengthInBytes)); 117rgbKey: new ArraySegment<byte>(tempKeys, 0, _symmetricAlgorithmSubkeyLengthInBytes).AsStandaloneArray(), 129using (var hashAlg = CreateValidationAlgorithm(new ArraySegment<byte>(tempKeys, _symmetricAlgorithmSubkeyLengthInBytes, _validationAlgorithmSubkeyLengthInBytes).AsStandaloneArray())) 212_symmetricAlgorithmSubkeyLengthInBytes <= 128 213? stackalloc byte[128].Slice(0, _symmetricAlgorithmSubkeyLengthInBytes) 327Span<byte> encryptionSubkey = _symmetricAlgorithmSubkeyLengthInBytes <= 128 328? stackalloc byte[128].Slice(0, _symmetricAlgorithmSubkeyLengthInBytes) 329: new byte[_symmetricAlgorithmSubkeyLengthInBytes];