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)
66
AlgorithmAssert.IsAllowableSymmetricAlgorithmKeySize(checked((uint)
_symmetricAlgorithmSubkeyLengthInBytes
* 8));
94
BitHelpers.WriteTo(retVal, ref idx,
_symmetricAlgorithmSubkeyLengthInBytes
);
102
var tempKeys = new byte[
_symmetricAlgorithmSubkeyLengthInBytes
+ _validationAlgorithmSubkeyLengthInBytes];
108
operationSubkey: tempKeys.AsSpan(0,
_symmetricAlgorithmSubkeyLengthInBytes
),
109
validationSubkey: tempKeys.AsSpan(
_symmetricAlgorithmSubkeyLengthInBytes
, _validationAlgorithmSubkeyLengthInBytes));
117
rgbKey: new ArraySegment<byte>(tempKeys, 0,
_symmetricAlgorithmSubkeyLengthInBytes
).AsStandaloneArray(),
129
using (var hashAlg = CreateValidationAlgorithm(new ArraySegment<byte>(tempKeys,
_symmetricAlgorithmSubkeyLengthInBytes
, _validationAlgorithmSubkeyLengthInBytes).AsStandaloneArray()))
212
_symmetricAlgorithmSubkeyLengthInBytes
<= 128
213
? stackalloc byte[128].Slice(0,
_symmetricAlgorithmSubkeyLengthInBytes
)
327
Span<byte> encryptionSubkey =
_symmetricAlgorithmSubkeyLengthInBytes
<= 128
328
? stackalloc byte[128].Slice(0,
_symmetricAlgorithmSubkeyLengthInBytes
)
329
: new byte[
_symmetricAlgorithmSubkeyLengthInBytes
];