39 references to Win32
Microsoft.Build.Tasks.Core (39)
ManifestUtil\mansign2.cs (39)
406throw new CryptographicException(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN); 426throw new CryptographicException(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN); 438int hr = Win32._AxlGetIssuerPublicKeyHash(signerCert.Handle, ref pIssuerKeyHash); 439if (hr != Win32.S_OK) 445Win32.HeapFree(Win32.GetProcessHeap(), 0, pIssuerKeyHash); 517throw new CryptographicException(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN); 522throw new CryptographicException(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN); 533throw new CryptographicException(Win32.NTE_BAD_KEY); 549Win32.CRYPT_DATA_BLOB publicKeyBlob = new Win32.CRYPT_DATA_BLOB(); 554int hr = Win32._AxlPublicKeyBlobToPublicKeyToken(ref publicKeyBlob, ref pPublicKeyToken); 555if (hr != Win32.S_OK) 561Win32.HeapFree(Win32.GetProcessHeap(), 0, pPublicKeyToken); 604throw new CryptographicException(Win32.TRUST_E_BAD_DIGEST); 624throw new CryptographicException(Win32.TRUST_E_BAD_DIGEST); 772string algId = useSha256 ? Win32.szOID_NIST_sha256 : Win32.szOID_OIWSEC_sha1; 809Win32.CRYPT_TIMESTAMP_PARA para = new Win32.CRYPT_TIMESTAMP_PARA() 820if (!Win32.CryptRetrieveTimeStamp( 836var timestampContext = Marshal.PtrToStructure<Win32.CRYPT_TIMESTAMP_CONTEXT>(ppTsContext); 845Win32.CryptMemFree(ppTsContext); 850Win32.CertFreeCertificateContext(ppTsSigner); 855Win32.CertCloseStore(phStore, 0); 888Win32.CRYPT_DATA_BLOB timestampBlob = new Win32.CRYPT_DATA_BLOB(); 896Win32.CRYPT_DATA_BLOB licenseBlob = new Win32.CRYPT_DATA_BLOB(); 901int hr = Win32.CertTimestampAuthenticodeLicense(ref licenseBlob, timeStampUrl, ref timestampBlob); 902if (hr != Win32.S_OK) 911Win32.HeapFree(Win32.GetProcessHeap(), 0, timestampBlob.pbData); 946throw new CryptographicException(Win32.TRUST_E_SUBJECT_FORM_UNKNOWN); 1277internal CmiAuthenticodeSignerInfo(Win32.AXL_SIGNER_INFO signerInfo, 1278Win32.AXL_TIMESTAMPER_INFO timestamperInfo) 1299if ((int)timestamperInfo.dwError != Win32.TRUST_E_NOSIGNATURE) 1396internal CmiAuthenticodeTimestamperInfo(Win32.AXL_TIMESTAMPER_INFO timestamperInfo)