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)
69
AlgorithmAssert.IsAllowableSymmetricAlgorithmKeySize(checked((uint)
_symmetricAlgorithmSubkeyLengthInBytes
* 8));
122
Span<byte> decryptionSubkey =
_symmetricAlgorithmSubkeyLengthInBytes
<= 128
123
? stackalloc byte[128].Slice(0,
_symmetricAlgorithmSubkeyLengthInBytes
)
124
: new byte[
_symmetricAlgorithmSubkeyLengthInBytes
];
220
Span<byte> encryptionSubkey =
_symmetricAlgorithmSubkeyLengthInBytes
<= 128
221
? stackalloc byte[128].Slice(0,
_symmetricAlgorithmSubkeyLengthInBytes
)
222
: new byte[
_symmetricAlgorithmSubkeyLengthInBytes
];
620
BitHelpers.WriteTo(retVal, ref idx,
_symmetricAlgorithmSubkeyLengthInBytes
);
628
var tempKeys = new byte[
_symmetricAlgorithmSubkeyLengthInBytes
+ _validationAlgorithmSubkeyLengthInBytes];
634
operationSubkey: tempKeys.AsSpan(0,
_symmetricAlgorithmSubkeyLengthInBytes
),
635
validationSubkey: tempKeys.AsSpan(
_symmetricAlgorithmSubkeyLengthInBytes
, _validationAlgorithmSubkeyLengthInBytes));
643
rgbKey: new ArraySegment<byte>(tempKeys, 0,
_symmetricAlgorithmSubkeyLengthInBytes
).AsStandaloneArray(),
655
using (var hashAlg = CreateValidationAlgorithm(new ArraySegment<byte>(tempKeys,
_symmetricAlgorithmSubkeyLengthInBytes
, _validationAlgorithmSubkeyLengthInBytes).AsStandaloneArray()))