ManifestUtil\mansign2.cs (40)
391throw new CryptographicException(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN);
411throw new CryptographicException(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN);
423int hr = Win32._AxlGetIssuerPublicKeyHash(signerCert.Handle, ref pIssuerKeyHash);
424if (hr != Win32.S_OK)
430Win32.HeapFree(Win32.GetProcessHeap(), 0, pIssuerKeyHash);
502throw new CryptographicException(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN);
507throw new CryptographicException(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN);
518throw new CryptographicException(Win32.NTE_BAD_KEY);
534Win32.CRYPT_DATA_BLOB publicKeyBlob = new Win32.CRYPT_DATA_BLOB();
539int hr = Win32._AxlPublicKeyBlobToPublicKeyToken(ref publicKeyBlob, ref pPublicKeyToken);
540if (hr != Win32.S_OK)
546Win32.HeapFree(Win32.GetProcessHeap(), 0, pPublicKeyToken);
589throw new CryptographicException(Win32.TRUST_E_BAD_DIGEST);
609throw new CryptographicException(Win32.TRUST_E_BAD_DIGEST);
752string algId = useSha256 ? Win32.szOID_NIST_sha256 : Win32.szOID_OIWSEC_sha1;
789Win32.CRYPT_TIMESTAMP_PARA para = new Win32.CRYPT_TIMESTAMP_PARA()
800if (!Win32.CryptRetrieveTimeStamp(
816var timestampContext = (Win32.CRYPT_TIMESTAMP_CONTEXT)Marshal.PtrToStructure(ppTsContext, typeof(Win32.CRYPT_TIMESTAMP_CONTEXT));
825Win32.CryptMemFree(ppTsContext);
830Win32.CertFreeCertificateContext(ppTsSigner);
835Win32.CertCloseStore(phStore, 0);
868Win32.CRYPT_DATA_BLOB timestampBlob = new Win32.CRYPT_DATA_BLOB();
876Win32.CRYPT_DATA_BLOB licenseBlob = new Win32.CRYPT_DATA_BLOB();
881int hr = Win32.CertTimestampAuthenticodeLicense(ref licenseBlob, timeStampUrl, ref timestampBlob);
882if (hr != Win32.S_OK)
891Win32.HeapFree(Win32.GetProcessHeap(), 0, timestampBlob.pbData);
924throw new CryptographicException(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN);
1255internal CmiAuthenticodeSignerInfo(Win32.AXL_SIGNER_INFO signerInfo,
1256Win32.AXL_TIMESTAMPER_INFO timestamperInfo)
1277if ((int)timestamperInfo.dwError != Win32.TRUST_E_NOSIGNATURE)
1374internal CmiAuthenticodeTimestamperInfo(Win32.AXL_TIMESTAMPER_INFO timestamperInfo)