48 references to X509Native
System.Core (48)
System\Security\Cryptography\BCryptNative.cs (3)
316
[In] ref
X509Native
.CERT_PUBLIC_KEY_INFO pInfo,
599
internal static SafeBCryptKeyHandle ImportAsymmetricPublicKey(
X509Native
.CERT_PUBLIC_KEY_INFO certPublicKeyInfo, int dwFlag) {
602
X509Native
.X509_ASN_ENCODING,
System\Security\Cryptography\X509Certificates\AuthenticodeSignatureInformation.cs (1)
29
internal AuthenticodeSignatureInformation(
X509Native
.AXL_AUTHENTICODE_SIGNER_INFO signer,
System\Security\Cryptography\X509Certificates\ECDsaCertificateExtensions.cs (19)
30
using (SafeCertContextHandle certificateContext =
X509Native
.GetCertificateContext(certificate))
31
using (SafeNCryptKeyHandle privateKeyHandle =
X509Native
.TryAcquireCngPrivateKey(certificateContext, out openOptions))
44
X509Native
.CERT_CONTEXT pCertContext = (
X509Native
.CERT_CONTEXT)Marshal.PtrToStructure(certHandle, typeof(
X509Native
.CERT_CONTEXT));
47
(long)Marshal.OffsetOf(typeof(
X509Native
.CERT_INFO), "SubjectPublicKeyInfo"));
49
X509Native
.CERT_PUBLIC_KEY_INFO certPublicKeyInfo =
50
(
X509Native
.CERT_PUBLIC_KEY_INFO)Marshal.PtrToStructure(pSubjectPublicKeyInfo, typeof(
X509Native
.CERT_PUBLIC_KEY_INFO));
72
using (SafeCertContextHandle safeCertContext =
X509Native
.GetCertificateContext(certificate))
115
SafeCertContextHandle safeCertContext =
X509Native
.GetCertificateContext(certificate);
118
X509Native
.CERT_CONTEXT pCertContext = (
X509Native
.CERT_CONTEXT)Marshal.PtrToStructure(certHandle, typeof(
X509Native
.CERT_CONTEXT));
121
(long)Marshal.OffsetOf(typeof(
X509Native
.CERT_INFO), "SubjectPublicKeyInfo"));
123
X509Native
.CERT_PUBLIC_KEY_INFO certPublicKeyInfo = (
X509Native
.CERT_PUBLIC_KEY_INFO)Marshal.PtrToStructure(pSubjectPublicKeyInfo,
124
typeof(
X509Native
.CERT_PUBLIC_KEY_INFO));
366
if (value !=
X509Native
.szOID_ECC_PUBLIC_KEY) { return false; }
System\Security\Cryptography\X509Certificates\RSACertificateExtensions.cs (2)
73
using (SafeCertContextHandle certificateContext =
X509Native
.GetCertificateContext(certificate))
74
using (SafeNCryptKeyHandle privateKeyHandle =
X509Native
.TryAcquireCngPrivateKey(certificateContext, out openOptions))
System\Security\Cryptography\X509Certificates\TimestampInformation.cs (1)
26
internal TimestampInformation(
X509Native
.AXL_AUTHENTICODE_TIMESTAMPER_INFO timestamper) {
System\Security\Cryptography\Xml\ManifestSignedXml.cs (22)
83
private X509Chain BuildSignatureChain(
X509Native
.AXL_AUTHENTICODE_SIGNER_INFO signer,
216
private TimestampInformation GetTimestampInformation(
X509Native
.AXL_AUTHENTICODE_TIMESTAMPER_INFO timestamper,
307
private static
X509Native
.AxlVerificationFlags MapRevocationFlags(X509RevocationFlag revocationFlag,
309
X509Native
.AxlVerificationFlags axlFlags =
X509Native
.AxlVerificationFlags.None;
313
axlFlags |=
X509Native
.AxlVerificationFlags.RevocationCheckEndCertOnly;
317
axlFlags |=
X509Native
.AxlVerificationFlags.RevocationCheckEntireChain;
322
axlFlags |=
X509Native
.AxlVerificationFlags.None;
328
axlFlags |=
X509Native
.AxlVerificationFlags.NoRevocationCheck;
332
axlFlags |=
X509Native
.AxlVerificationFlags.UrlOnlyCacheRetrieval;
337
axlFlags |=
X509Native
.AxlVerificationFlags.None;
426
int hrHash =
X509Native
.UnsafeNativeMethods._AxlGetIssuerPublicKeyHash(publisherCertificate.Handle,
485
X509Native
.AXL_AUTHENTICODE_SIGNER_INFO signer = new
X509Native
.AXL_AUTHENTICODE_SIGNER_INFO();
486
signer.cbSize = Marshal.SizeOf(typeof(
X509Native
.AXL_AUTHENTICODE_SIGNER_INFO));
488
X509Native
.AXL_AUTHENTICODE_TIMESTAMPER_INFO timestamper = new
X509Native
.AXL_AUTHENTICODE_TIMESTAMPER_INFO();
489
timestamper.cbsize = Marshal.SizeOf(typeof(
X509Native
.AXL_AUTHENTICODE_TIMESTAMPER_INFO));
494
X509Native
.AxlVerificationFlags verificationFlags = MapRevocationFlags(revocationFlag,
504
int hrVerify =
X509Native
.UnsafeNativeMethods.CertVerifyAuthenticodeLicense(ref xmlBlob,
528
X509Native
.UnsafeNativeMethods.CertFreeAuthenticodeSignerInfo(ref signer);
529
X509Native
.UnsafeNativeMethods.CertFreeAuthenticodeTimestamperInfo(ref timestamper);