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)
3065Assert.Equal(ExecutableType.PE, ContentUtil.GetExecutableType(peFile)); 3069Assert.Equal(ExecutableType.ELF, ContentUtil.GetExecutableType(elfFile)); 3074Assert.Equal(ExecutableType.MachO, ContentUtil.GetExecutableType(machoFile)); 3080Assert.Equal(ExecutableType.None, ContentUtil.GetExecutableType(unknownFile)); 3086Assert.Equal(ExecutableType.None, ContentUtil.GetExecutableType(emptyFile)); 3092Assert.Equal(ExecutableType.None, ContentUtil.GetExecutableType(smallPeFile)); 3098Assert.Equal(ExecutableType.None, ContentUtil.GetExecutableType(incompletePeFile));