1 instantiation of SafeCertContextHandle
System.Security.Cryptography.Pkcs (1)
Internal\Cryptography\Pal\Windows\HelpersWindows.cs (1)
153SafeCertContextHandle hCertContext = new SafeCertContextHandle(pCertContext);
25 references to SafeCertContextHandle
System.Security.Cryptography.Pkcs (25)
_generated\0\LibraryImports.g.cs (10)
333internal static partial bool CertGetCertificateContextProperty(global::Microsoft.Win32.SafeHandles.SafeCertContextHandle pCertContext, global::Interop.Crypt32.CertContextPropId dwPropId, byte[] pvData, ref int pcbData) 340global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeCertContextHandle>.ManagedToUnmanagedIn __pCertContext_native__marshaller = new(); 380internal static unsafe partial bool CertGetCertificateContextPropertyPtr(global::Microsoft.Win32.SafeHandles.SafeCertContextHandle pCertContext, global::Interop.Crypt32.CertContextPropId dwPropId, byte* pvData, ref int pcbData) 387global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeCertContextHandle>.ManagedToUnmanagedIn __pCertContext_native__marshaller = new(); 426internal static partial bool CertGetCertificateContextProperty(global::Microsoft.Win32.SafeHandles.SafeCertContextHandle pCertContext, global::Interop.Crypt32.CertContextPropId dwPropId, out nint pvData, ref int pcbData) 434global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeCertContextHandle>.ManagedToUnmanagedIn __pCertContext_native__marshaller = new(); 474internal 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) 482global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeCertContextHandle>.ManagedToUnmanagedIn __pCertContext_native__marshaller = new(); 574internal 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) 585global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeCertContextHandle>.ManagedToUnmanagedIn __pCert_native__marshaller = new();
Internal\Cryptography\Pal\Windows\DecryptorPalWindows.Decrypt.cs (2)
124using (SafeCertContextHandle hCertContext = cert.CreateCertContextHandle()) 228using (SafeCertContextHandle hCertContext = originatorCert.CreateCertContextHandle())
Internal\Cryptography\Pal\Windows\HelpersWindows.cs (3)
149public static SafeCertContextHandle CreateCertContextHandle(this X509Certificate2 cert) 153SafeCertContextHandle hCertContext = new SafeCertContextHandle(pCertContext); 158public static byte[] GetSubjectKeyIdentifier(this SafeCertContextHandle hCertContext)
Internal\Cryptography\Pal\Windows\PkcsPalWindows.cs (2)
85using (SafeCertContextHandle hCertContext = certificate.CreateCertContextHandle()) 217using (SafeCertContextHandle hCertContext = cert.CreateCertContextHandle())
Internal\Cryptography\Pal\Windows\PkcsPalWindows.Encrypt.cs (3)
253using (SafeCertContextHandle hCertContext = recipient.Certificate.CreateCertContextHandle()) 338using (SafeCertContextHandle hCertContext = recipient.Certificate.CreateCertContextHandle()) 396private 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)
16SafeCertContextHandle pCertContext, 25SafeCertContextHandle pCertContext, 34SafeCertContextHandle pCertContext, 43SafeCertContextHandle pCertContext,
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.CryptAcquireCertificatePrivateKey.cs (1)
16SafeCertContextHandle pCert,