1 write to _symmetricAlgorithmSubkeyLengthInBytes
Microsoft.AspNetCore.DataProtection (1)
Cng\CngGcmAuthenticatedEncryptor.cs (1)
49
_symmetricAlgorithmSubkeyLengthInBytes
= symmetricAlgorithmKeySizeInBytes;
11 references to _symmetricAlgorithmSubkeyLengthInBytes
Microsoft.AspNetCore.DataProtection (11)
Cng\CngGcmAuthenticatedEncryptor.cs (11)
73
BitHelpers.WriteTo(ref ptr,
_symmetricAlgorithmSubkeyLengthInBytes
);
79
var tempKeys = new byte[
_symmetricAlgorithmSubkeyLengthInBytes
];
101
cbKey:
_symmetricAlgorithmSubkeyLengthInBytes
,
140
byte* pbSymmetricDecryptionSubkey = stackalloc byte[checked((int)
_symmetricAlgorithmSubkeyLengthInBytes
)];
150
cbDerivedKey:
_symmetricAlgorithmSubkeyLengthInBytes
);
153
using (var decryptionSubkeyHandle = _symmetricAlgorithmHandle.GenerateSymmetricKey(pbSymmetricDecryptionSubkey,
_symmetricAlgorithmSubkeyLengthInBytes
))
189
UnsafeBufferUtil.SecureZeroMemory(pbSymmetricDecryptionSubkey,
_symmetricAlgorithmSubkeyLengthInBytes
);
253
byte* pbSymmetricEncryptionSubkey = stackalloc byte[checked((int)
_symmetricAlgorithmSubkeyLengthInBytes
)];
263
cbDerivedKey:
_symmetricAlgorithmSubkeyLengthInBytes
);
268
cbKey:
_symmetricAlgorithmSubkeyLengthInBytes
,
282
UnsafeBufferUtil.SecureZeroMemory(pbSymmetricEncryptionSubkey,
_symmetricAlgorithmSubkeyLengthInBytes
);