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)
77
AlgorithmAssert.IsAllowableSymmetricAlgorithmKeySize(checked((uint)
_symmetricAlgorithmSubkeyLengthInBytes
* 8));
130
Span<byte> decryptionSubkey =
_symmetricAlgorithmSubkeyLengthInBytes
<= 128
131
? stackalloc byte[128].Slice(0,
_symmetricAlgorithmSubkeyLengthInBytes
)
132
: new byte[
_symmetricAlgorithmSubkeyLengthInBytes
];
228
Span<byte> encryptionSubkey =
_symmetricAlgorithmSubkeyLengthInBytes
<= 128
229
? stackalloc byte[128].Slice(0,
_symmetricAlgorithmSubkeyLengthInBytes
)
230
: new byte[
_symmetricAlgorithmSubkeyLengthInBytes
];
622
BitHelpers.WriteTo(retVal, ref idx,
_symmetricAlgorithmSubkeyLengthInBytes
);
630
var tempKeys = new byte[
_symmetricAlgorithmSubkeyLengthInBytes
+ _validationAlgorithmSubkeyLengthInBytes];
636
operationSubkey: tempKeys.AsSpan(0,
_symmetricAlgorithmSubkeyLengthInBytes
),
637
validationSubkey: tempKeys.AsSpan(
_symmetricAlgorithmSubkeyLengthInBytes
, _validationAlgorithmSubkeyLengthInBytes));
645
rgbKey: new ArraySegment<byte>(tempKeys, 0,
_symmetricAlgorithmSubkeyLengthInBytes
).AsStandaloneArray(),
657
using (var hashAlg = CreateValidationAlgorithm(new ArraySegment<byte>(tempKeys,
_symmetricAlgorithmSubkeyLengthInBytes
, _validationAlgorithmSubkeyLengthInBytes).AsStandaloneArray()))