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));
112
Span<byte> decryptionSubkey =
_symmetricAlgorithmSubkeyLengthInBytes
<= 128
113
? stackalloc byte[128].Slice(0,
_symmetricAlgorithmSubkeyLengthInBytes
)
114
: new byte[
_symmetricAlgorithmSubkeyLengthInBytes
];
210
Span<byte> encryptionSubkey =
_symmetricAlgorithmSubkeyLengthInBytes
<= 128
211
? stackalloc byte[128].Slice(0,
_symmetricAlgorithmSubkeyLengthInBytes
)
212
: new byte[
_symmetricAlgorithmSubkeyLengthInBytes
];
615
BitHelpers.WriteTo(retVal, ref idx,
_symmetricAlgorithmSubkeyLengthInBytes
);
623
var tempKeys = new byte[
_symmetricAlgorithmSubkeyLengthInBytes
+ _validationAlgorithmSubkeyLengthInBytes];
629
operationSubkey: tempKeys.AsSpan(0,
_symmetricAlgorithmSubkeyLengthInBytes
),
630
validationSubkey: tempKeys.AsSpan(
_symmetricAlgorithmSubkeyLengthInBytes
, _validationAlgorithmSubkeyLengthInBytes));
638
rgbKey: new ArraySegment<byte>(tempKeys, 0,
_symmetricAlgorithmSubkeyLengthInBytes
).AsStandaloneArray(),
650
using (var hashAlg = CreateValidationAlgorithm(new ArraySegment<byte>(tempKeys,
_symmetricAlgorithmSubkeyLengthInBytes
, _validationAlgorithmSubkeyLengthInBytes).AsStandaloneArray()))