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)
324internal static partial bool CertGetCertificateContextProperty(global::Microsoft.Win32.SafeHandles.SafeCertContextHandle pCertContext, global::Interop.Crypt32.CertContextPropId dwPropId, byte[] pvData, ref int pcbData) 331global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeCertContextHandle>.ManagedToUnmanagedIn __pCertContext_native__marshaller = new(); 370internal static unsafe partial bool CertGetCertificateContextPropertyPtr(global::Microsoft.Win32.SafeHandles.SafeCertContextHandle pCertContext, global::Interop.Crypt32.CertContextPropId dwPropId, byte* pvData, ref int pcbData) 377global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeCertContextHandle>.ManagedToUnmanagedIn __pCertContext_native__marshaller = new(); 415internal static partial bool CertGetCertificateContextProperty(global::Microsoft.Win32.SafeHandles.SafeCertContextHandle pCertContext, global::Interop.Crypt32.CertContextPropId dwPropId, out nint pvData, ref int pcbData) 423global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeCertContextHandle>.ManagedToUnmanagedIn __pCertContext_native__marshaller = new(); 462internal 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) 470global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeCertContextHandle>.ManagedToUnmanagedIn __pCertContext_native__marshaller = new(); 559internal 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) 570global::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)
15SafeCertContextHandle pCertContext, 23SafeCertContextHandle pCertContext, 31SafeCertContextHandle pCertContext, 39SafeCertContextHandle pCertContext,
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.CryptAcquireCertificatePrivateKey.cs (1)
15SafeCertContextHandle pCert,