11 references to CertGetCertificateContextProperty
System.Security.Cryptography (11)
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeCertContextHandle.cs (1)
87
bool hasProperty =
CertGetCertificateContextProperty
(
src\runtime\src\libraries\Common\src\Microsoft\Win32\SafeHandles\SafeCertContextHandleWithKeyContainerDeletion.cs (2)
32
bool containsPrivateKey = Interop.Crypt32.
CertGetCertificateContextProperty
(pCertContext, Interop.Crypt32.CertContextPropId.CERT_KEY_PROV_INFO_PROP_ID, null, ref cb);
37
if (!Interop.Crypt32.
CertGetCertificateContextProperty
(pCertContext, Interop.Crypt32.CertContextPropId.CERT_KEY_PROV_INFO_PROP_ID, provInfoAsBytes, ref cb))
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\CertificateHelpers.Windows.cs (2)
218
if (!Interop.Crypt32.
CertGetCertificateContextProperty
(hCertContext, Interop.Crypt32.CertContextPropId.CERT_KEY_PROV_INFO_PROP_ID, null, ref cbData))
235
if (!Interop.Crypt32.
CertGetCertificateContextProperty
(hCertContext, Interop.Crypt32.CertContextPropId.CERT_KEY_PROV_INFO_PROP_ID, privateKey, ref cbData))
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.cs (6)
68
if (!Interop.Crypt32.
CertGetCertificateContextProperty
(_certContext, Interop.Crypt32.CertContextPropId.CERT_SHA1_HASH_PROP_ID, null, ref cbData))
72
if (!Interop.Crypt32.
CertGetCertificateContextProperty
(_certContext, Interop.Crypt32.CertContextPropId.CERT_SHA1_HASH_PROP_ID, thumbprint, ref cbData))
153
if (!Interop.Crypt32.
CertGetCertificateContextProperty
(_certContext, Interop.Crypt32.CertContextPropId.CERT_PUBKEY_ALG_PARA_PROP_ID, null, ref cbData))
159
if (!Interop.Crypt32.
CertGetCertificateContextProperty
(_certContext, Interop.Crypt32.CertContextPropId.CERT_PUBKEY_ALG_PARA_PROP_ID, null, ref cbData))
164
if (!Interop.Crypt32.
CertGetCertificateContextProperty
(_certContext, Interop.Crypt32.CertContextPropId.CERT_PUBKEY_ALG_PARA_PROP_ID, keyAlgorithmParameters, ref cbData))
272
bool archivePropertyExists = Interop.Crypt32.
CertGetCertificateContextProperty
(_certContext, Interop.Crypt32.CertContextPropId.CERT_ARCHIVED_PROP_ID, null!, ref uninteresting);