50 references to X509Utils
System.Security (50)
system\security\cryptography\bigint.cs (1)
439
byte[] hex =
X509Utils
.DecodeHexString(hexNum);
system\security\cryptography\pkcs\envelopedpkcs7.cs (12)
273
if (
X509Utils
.GetPrivateKeyInfo(cmsgDecryptParam.safeCertContextHandle, ref parameters))
602
uint algId =
X509Utils
.OidToAlgId(contentEncryptionAlgorithm.Oid.Value);
669
CAPI.CERT_CONTEXT pCertContext = (CAPI.CERT_CONTEXT) Marshal.PtrToStructure(
X509Utils
.GetCertContext(certificates[index]).DangerousGetHandle(), typeof(CAPI.CERT_CONTEXT));
688
CAPI.CERT_CONTEXT pCertContext = (CAPI.CERT_CONTEXT) Marshal.PtrToStructure(
X509Utils
.GetCertContext(certificate).DangerousGetHandle(), typeof(CAPI.CERT_CONTEXT));
751
if (!CAPI.CAPISafe.CertGetCertificateContextProperty(
X509Utils
.GetCertContext(certificate),
759
if (!CAPI.CAPISafe.CertGetCertificateContextProperty(
X509Utils
.GetCertContext(certificate),
838
uint algId =
X509Utils
.OidToAlgId(contentEncryptionAlgorithm.Oid.Value);
937
if (!CAPI.CAPISafe.CertGetCertificateContextProperty(
X509Utils
.GetCertContext(certificate),
944
if (!CAPI.CAPISafe.CertGetCertificateContextProperty(
X509Utils
.GetCertContext(certificate),
1028
SafeCertContextHandle certContext =
X509Utils
.GetCertContext(recipients[index].Certificate);
1070
return
X509Utils
.ExportToMemoryStore(recipientStore, extraStore);
1123
return
X509Utils
.ExportToMemoryStore(originatorStore, includedButNotDisposed);
system\security\cryptography\pkcs\pkcsmisc.cs (4)
103
Reset(SubjectIdentifierType.SubjectKeyIdentifier,
X509Utils
.EncodeHexString(ski));
131
Reset(SubjectIdentifierType.SubjectKeyIdentifier,
X509Utils
.EncodeHexString(ski));
238
Reset(SubjectIdentifierOrKeyType.SubjectKeyIdentifier,
X509Utils
.EncodeHexString(ski));
340
uint algId =
X509Utils
.OidToAlgId(algorithmIdentifier.pszObjId);
system\security\cryptography\pkcs\pkcsutils.cs (9)
58
CAPI.CERT_CONTEXT pCertContext = (CAPI.CERT_CONTEXT) Marshal.PtrToStructure(
X509Utils
.GetCertContext(certificate).DangerousGetHandle(), typeof(CAPI.CERT_CONTEXT));
61
uint algId =
X509Utils
.OidToAlgId(certInfo.SubjectPublicKeyInfo.Algorithm.pszObjId);
313
if (
X509Utils
.MemEqual((byte *) cmsgSignerInfo1.Issuer.pbData,
317
X509Utils
.MemEqual((byte *) cmsgSignerInfo1.SerialNumber.pbData,
386
issuerSerial.SerialNumber =
X509Utils
.EncodeHexStringFromInt(serial);
784
SafeCertContextHandle safeCertContextHandle =
X509Utils
.GetCertContext(signer.Certificate);
852
if (
X509Utils
.GetPrivateKeyInfo(safeCertContextHandle, ref parameters) == false)
963
SafeCertContextHandle safeCertContextHandle =
X509Utils
.GetCertContext(certificate);
984
SafeCertContextHandle safeCertContextHandle =
X509Utils
.GetCertContext(certificate);
system\security\cryptography\pkcs\signedpkcs7.cs (2)
196
if (
X509Utils
.GetPrivateKeyInfo(
X509Utils
.GetCertContext(signer.Certificate), ref parameters))
system\security\cryptography\pkcs\signerinfo.cs (9)
291
if (
X509Utils
.GetPrivateKeyInfo(
X509Utils
.GetCertContext(signer.Certificate), ref parameters) == false)
349
CAPI.CERT_CONTEXT pCertContext = (CAPI.CERT_CONTEXT) Marshal.PtrToStructure(
X509Utils
.GetCertContext(certificate).DangerousGetHandle(), typeof(CAPI.CERT_CONTEXT));
394
X509Utils
.BuildChain(new IntPtr(CAPI.HCCE_CURRENT_USER),
395
X509Utils
.GetCertContext(certificate),
410
if (!CAPI.CAPISafe.CertGetCertificateContextProperty(
X509Utils
.GetCertContext(certificate),
418
if (!CAPI.CAPISafe.CertGetCertificateContextProperty(
X509Utils
.GetCertContext(certificate),
687
int hr =
X509Utils
.VerifyCertificate(
X509Utils
.GetCertContext(certificate),
system\security\cryptography\x509\x509ui.cs (4)
31
DisplayX509Certificate(
X509Utils
.GetCertContext(certificate), IntPtr.Zero);
38
DisplayX509Certificate(
X509Utils
.GetCertContext(certificate), hwndParent);
103
using (SafeCertStoreHandle safeSourceStoreHandle =
X509Utils
.ExportToMemoryStore(certificates))
106
return
X509Utils
.GetCertificates(safeTargetStoreHandle);
system\security\cryptography\x509\x509utils.cs (6)
225
using (SafeCertContextHandle ctx =
X509Utils
.GetCertContext(x509)) {
307
hCertStore =
X509Utils
.ExportToMemoryStore(extraStore);
319
applicationPolicyHandle =
X509Utils
.CopyOidsToUnmanagedMemory(applicationPolicy);
328
certificatePolicyHandle =
X509Utils
.CopyOidsToUnmanagedMemory(certificatePolicy);
337
uint flags =
X509Utils
.MapRevocationFlags(revocationMode, revocationFlag);
382
int hr =
X509Utils
.BuildChain(new IntPtr(CAPI.HCCE_CURRENT_USER),
system\security\cryptography\xml\keyinfo.cs (2)
544
for (int index = 0; index < (
X509Utils
.IsSelfSigned(chain) ? 1 : elements.Count - 1); index++) {
602
m_subjectKeyIds.Add(
X509Utils
.DecodeHexString(subjectKeyId));
system\security\cryptography\xml\utils.cs (1)
906
string hex =
X509Utils
.EncodeHexString(ski);