1 write to m_cspHandle
System.Core (1)
System\Security\Cryptography\AesCryptoServiceProvider.cs (1)
47
m_cspHandle
= CapiNative.AcquireCsp(null,
18 references to m_cspHandle
System.Core (18)
System\Security\Cryptography\AesCryptoServiceProvider.cs (18)
38
Contract.Ensures(
m_cspHandle
!= null && !
m_cspHandle
.IsInvalid && !
m_cspHandle
.IsClosed);
59
KeySizes[] keySizes = FindSupportedKeySizes(
m_cspHandle
, out defaultKeySize);
108
SafeCapiKeyHandle importedKey = CapiNative.ImportSymmetricKey(
m_cspHandle
,
177
using (SafeCapiKeyHandle importedKey = CapiNative.ImportSymmetricKey(
m_cspHandle
, GetAlgorithmId(keyCopy.Length * 8), keyCopy)) {
192
m_cspHandle
,
243
using (SafeCapiKeyHandle importedKey = CapiNative.ImportSymmetricKey(
m_cspHandle
, GetAlgorithmId(keyCopy.Length * 8), keyCopy)) {
258
m_cspHandle
,
272
Contract.Ensures(!disposing ||
m_cspHandle
== null ||
m_cspHandle
.IsClosed);
280
if (
m_cspHandle
!= null) {
281
m_cspHandle
.Dispose();
370
Contract.Assert(
m_cspHandle
!= null);
376
if (!CapiNative.UnsafeNativeMethods.CryptGenKey(
m_cspHandle
,
385
key.SetParentCsp(
m_cspHandle
);
403
Contract.Assert(
m_cspHandle
!= null);
407
if (!CapiNative.UnsafeNativeMethods.CryptGenRandom(
m_cspHandle
, iv.Length, iv)) {