1 instantiation of SafeCertContextHandle
System.Security.Cryptography.Pkcs (1)
Internal\Cryptography\Pal\Windows\HelpersWindows.cs (1)
153
SafeCertContextHandle hCertContext = new
SafeCertContextHandle
(pCertContext);
25 references to SafeCertContextHandle
System.Security.Cryptography.Pkcs (25)
_generated\0\LibraryImports.g.cs (10)
324
internal static partial bool CertGetCertificateContextProperty(global::Microsoft.Win32.SafeHandles.
SafeCertContextHandle
pCertContext, global::Interop.Crypt32.CertContextPropId dwPropId, byte[] pvData, ref int pcbData)
331
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeCertContextHandle
>.ManagedToUnmanagedIn __pCertContext_native__marshaller = new();
370
internal static unsafe partial bool CertGetCertificateContextPropertyPtr(global::Microsoft.Win32.SafeHandles.
SafeCertContextHandle
pCertContext, global::Interop.Crypt32.CertContextPropId dwPropId, byte* pvData, ref int pcbData)
377
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeCertContextHandle
>.ManagedToUnmanagedIn __pCertContext_native__marshaller = new();
415
internal static partial bool CertGetCertificateContextProperty(global::Microsoft.Win32.SafeHandles.
SafeCertContextHandle
pCertContext, global::Interop.Crypt32.CertContextPropId dwPropId, out nint pvData, ref int pcbData)
423
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeCertContextHandle
>.ManagedToUnmanagedIn __pCertContext_native__marshaller = new();
462
internal static partial bool CertGetCertificateContextProperty(global::Microsoft.Win32.SafeHandles.
SafeCertContextHandle
pCertContext, global::Interop.Crypt32.CertContextPropId dwPropId, out global::Interop.Crypt32.DATA_BLOB pvData, ref int pcbData)
470
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeCertContextHandle
>.ManagedToUnmanagedIn __pCertContext_native__marshaller = new();
559
internal static partial bool CryptAcquireCertificatePrivateKey(global::Microsoft.Win32.SafeHandles.
SafeCertContextHandle
pCert, global::Interop.Crypt32.CryptAcquireCertificatePrivateKeyFlags dwFlags, nint pvParameters, out nint phCryptProvOrNCryptKey, out global::Interop.Crypt32.CryptKeySpec pdwKeySpec, out bool pfCallerFreeProvOrNCryptKey)
570
global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.
SafeCertContextHandle
>.ManagedToUnmanagedIn __pCert_native__marshaller = new();
Internal\Cryptography\Pal\Windows\DecryptorPalWindows.Decrypt.cs (2)
124
using (
SafeCertContextHandle
hCertContext = cert.CreateCertContextHandle())
228
using (
SafeCertContextHandle
hCertContext = originatorCert.CreateCertContextHandle())
Internal\Cryptography\Pal\Windows\HelpersWindows.cs (3)
149
public static
SafeCertContextHandle
CreateCertContextHandle(this X509Certificate2 cert)
153
SafeCertContextHandle
hCertContext = new SafeCertContextHandle(pCertContext);
158
public static byte[] GetSubjectKeyIdentifier(this
SafeCertContextHandle
hCertContext)
Internal\Cryptography\Pal\Windows\PkcsPalWindows.cs (2)
85
using (
SafeCertContextHandle
hCertContext = certificate.CreateCertContextHandle())
217
using (
SafeCertContextHandle
hCertContext = cert.CreateCertContextHandle())
Internal\Cryptography\Pal\Windows\PkcsPalWindows.Encrypt.cs (3)
253
using (
SafeCertContextHandle
hCertContext = recipient.Certificate.CreateCertContextHandle())
338
using (
SafeCertContextHandle
hCertContext = recipient.Certificate.CreateCertContextHandle())
396
private static unsafe CERT_ID EncodeRecipientId(CmsRecipient recipient,
SafeCertContextHandle
hCertContext, CERT_CONTEXT* pCertContext, CERT_INFO* pCertInfo, HeapBlockRetainer hb)
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.CertGetCertificateContextProperty.cs (4)
15
SafeCertContextHandle
pCertContext,
23
SafeCertContextHandle
pCertContext,
31
SafeCertContextHandle
pCertContext,
39
SafeCertContextHandle
pCertContext,
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.CryptAcquireCertificatePrivateKey.cs (1)
15
SafeCertContextHandle
pCert,