40 references to Win32
Microsoft.Build.Tasks.Core (40)
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); 755string algId = useSha256 ? Win32.szOID_NIST_sha256 : Win32.szOID_OIWSEC_sha1; 792Win32.CRYPT_TIMESTAMP_PARA para = new Win32.CRYPT_TIMESTAMP_PARA() 803if (!Win32.CryptRetrieveTimeStamp( 819var timestampContext = (Win32.CRYPT_TIMESTAMP_CONTEXT)Marshal.PtrToStructure(ppTsContext, typeof(Win32.CRYPT_TIMESTAMP_CONTEXT)); 828Win32.CryptMemFree(ppTsContext); 833Win32.CertFreeCertificateContext(ppTsSigner); 838Win32.CertCloseStore(phStore, 0); 871Win32.CRYPT_DATA_BLOB timestampBlob = new Win32.CRYPT_DATA_BLOB(); 879Win32.CRYPT_DATA_BLOB licenseBlob = new Win32.CRYPT_DATA_BLOB(); 884int hr = Win32.CertTimestampAuthenticodeLicense(ref licenseBlob, timeStampUrl, ref timestampBlob); 885if (hr != Win32.S_OK) 894Win32.HeapFree(Win32.GetProcessHeap(), 0, timestampBlob.pbData); 927throw new CryptographicException(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN); 1258internal CmiAuthenticodeSignerInfo(Win32.AXL_SIGNER_INFO signerInfo, 1259Win32.AXL_TIMESTAMPER_INFO timestamperInfo) 1280if ((int)timestamperInfo.dwError != Win32.TRUST_E_NOSIGNATURE) 1377internal CmiAuthenticodeTimestamperInfo(Win32.AXL_TIMESTAMPER_INFO timestamperInfo)