42 references to Win32
Microsoft.Build.Tasks.Core (42)
ManifestUtil\mansign2.cs (42)
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); 580throw new CryptographicException(Win32.TRUST_E_BAD_DIGEST); 600throw new CryptographicException(Win32.TRUST_E_BAD_DIGEST); 643throw new CryptographicException(Win32.TRUST_E_BAD_DIGEST); 663throw new CryptographicException(Win32.TRUST_E_BAD_DIGEST); 810string algId = useSha256 ? Win32.szOID_NIST_sha256 : Win32.szOID_OIWSEC_sha1; 842Win32.CRYPT_TIMESTAMP_PARA para = new Win32.CRYPT_TIMESTAMP_PARA() 853if (!Win32.CryptRetrieveTimeStamp( 869var timestampContext = (Win32.CRYPT_TIMESTAMP_CONTEXT)Marshal.PtrToStructure(ppTsContext, typeof(Win32.CRYPT_TIMESTAMP_CONTEXT)); 878Win32.CryptMemFree(ppTsContext); 883Win32.CertFreeCertificateContext(ppTsSigner); 888Win32.CertCloseStore(phStore, 0); 921Win32.CRYPT_DATA_BLOB timestampBlob = new Win32.CRYPT_DATA_BLOB(); 929Win32.CRYPT_DATA_BLOB licenseBlob = new Win32.CRYPT_DATA_BLOB(); 934int hr = Win32.CertTimestampAuthenticodeLicense(ref licenseBlob, timeStampUrl, ref timestampBlob); 935if (hr != Win32.S_OK) 944Win32.HeapFree(Win32.GetProcessHeap(), 0, timestampBlob.pbData); 977throw new CryptographicException(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN); 1301internal CmiAuthenticodeSignerInfo(Win32.AXL_SIGNER_INFO signerInfo, 1302Win32.AXL_TIMESTAMPER_INFO timestamperInfo) 1323if ((int)timestamperInfo.dwError != Win32.TRUST_E_NOSIGNATURE) 1420internal CmiAuthenticodeTimestamperInfo(Win32.AXL_TIMESTAMPER_INFO timestamperInfo)