18 references to ContentUtil
Microsoft.DotNet.SignTool (11)
src\Configuration.cs (6)
159var contentHash = ContentUtil.GetContentHash(itemToSign.FullPath); 328ExecutableType executableType = ContentUtil.GetExecutableType(file.FullPath); 332if (file.ContentHash == ContentUtil.EmptyFileContentHash) 696bool isManaged = ContentUtil.IsManaged(fullPath); 703bool isCrossgened = ContentUtil.IsCrossgened(fullPath); 704string publicKeyToken = ContentUtil.GetPublicKeyToken(fullPath);
src\FileSignInfo.cs (2)
80internal bool IsManaged() => ContentUtil.IsManaged(FullPath); 82internal bool IsCrossgened() => ContentUtil.IsCrossgened(FullPath);
src\SignedFileContentKey.cs (1)
37StringHash = ContentUtil.HashToString(contentHash);
src\ZipDataEntry.cs (2)
44_contentHash = ContentUtil.GetContentHash(_stream); 59_contentHash = ContentUtil.GetContentHash(contentHashStream);
Microsoft.DotNet.SignTool.Tests (7)
SignToolTests.cs (7)
3120Assert.Equal(ExecutableType.PE, ContentUtil.GetExecutableType(peFile)); 3124Assert.Equal(ExecutableType.ELF, ContentUtil.GetExecutableType(elfFile)); 3129Assert.Equal(ExecutableType.MachO, ContentUtil.GetExecutableType(machoFile)); 3135Assert.Equal(ExecutableType.None, ContentUtil.GetExecutableType(unknownFile)); 3141Assert.Equal(ExecutableType.None, ContentUtil.GetExecutableType(emptyFile)); 3147Assert.Equal(ExecutableType.None, ContentUtil.GetExecutableType(smallPeFile)); 3153Assert.Equal(ExecutableType.None, ContentUtil.GetExecutableType(incompletePeFile));