18 references to ContentUtil
Microsoft.DotNet.SignTool (11)
src\Configuration.cs (6)
159var contentHash = ContentUtil.GetContentHash(itemToSign.FullPath); 320ExecutableType executableType = ContentUtil.GetExecutableType(file.FullPath); 324if (file.ContentHash == ContentUtil.EmptyFileContentHash) 672bool isManaged = ContentUtil.IsManaged(fullPath); 679bool isCrossgened = ContentUtil.IsCrossgened(fullPath); 680string 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)
3060Assert.Equal(ExecutableType.PE, ContentUtil.GetExecutableType(peFile)); 3064Assert.Equal(ExecutableType.ELF, ContentUtil.GetExecutableType(elfFile)); 3069Assert.Equal(ExecutableType.MachO, ContentUtil.GetExecutableType(machoFile)); 3075Assert.Equal(ExecutableType.None, ContentUtil.GetExecutableType(unknownFile)); 3081Assert.Equal(ExecutableType.None, ContentUtil.GetExecutableType(emptyFile)); 3087Assert.Equal(ExecutableType.None, ContentUtil.GetExecutableType(smallPeFile)); 3093Assert.Equal(ExecutableType.None, ContentUtil.GetExecutableType(incompletePeFile));