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\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (10)
347internal static partial bool CertGetCertificateContextProperty(global::Microsoft.Win32.SafeHandles.SafeCertContextHandle pCertContext, global::Interop.Crypt32.CertContextPropId dwPropId, byte[] pvData, ref int pcbData) 356global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeCertContextHandle>.ManagedToUnmanagedIn __pCertContext_native__marshaller = new(); 395internal static unsafe partial bool CertGetCertificateContextPropertyPtr(global::Microsoft.Win32.SafeHandles.SafeCertContextHandle pCertContext, global::Interop.Crypt32.CertContextPropId dwPropId, byte* pvData, ref int pcbData) 404global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeCertContextHandle>.ManagedToUnmanagedIn __pCertContext_native__marshaller = new(); 442internal static partial bool CertGetCertificateContextProperty(global::Microsoft.Win32.SafeHandles.SafeCertContextHandle pCertContext, global::Interop.Crypt32.CertContextPropId dwPropId, out nint pvData, ref int pcbData) 452global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeCertContextHandle>.ManagedToUnmanagedIn __pCertContext_native__marshaller = new(); 491internal 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) 501global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeCertContextHandle>.ManagedToUnmanagedIn __pCertContext_native__marshaller = new(); 596internal 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) 609global::System.Runtime.InteropServices.Marshalling.SafeHandleMarshaller<global::Microsoft.Win32.SafeHandles.SafeCertContextHandle>.ManagedToUnmanagedIn __pCert_native__marshaller = new();
Internal\Cryptography\Pal\Windows\DecryptorPalWindows.Decrypt.cs (2)
128using (SafeCertContextHandle hCertContext = cert.CreateCertContextHandle()) 232using (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,