18 references to ContentUtil
Microsoft.DotNet.SignTool (11)
src\Configuration.cs (6)
159var contentHash = ContentUtil.GetContentHash(itemToSign.FullPath); 312ExecutableType executableType = ContentUtil.GetExecutableType(file.FullPath); 316if (file.ContentHash == ContentUtil.EmptyFileContentHash) 658bool isManaged = ContentUtil.IsManaged(fullPath); 665bool isCrossgened = ContentUtil.IsCrossgened(fullPath); 666string publicKeyToken = ContentUtil.GetPublicKeyToken(fullPath);
src\FileSignInfo.cs (2)
77internal bool IsManaged() => ContentUtil.IsManaged(FullPath); 79internal 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)
2955Assert.Equal(ExecutableType.PE, ContentUtil.GetExecutableType(peFile)); 2959Assert.Equal(ExecutableType.ELF, ContentUtil.GetExecutableType(elfFile)); 2964Assert.Equal(ExecutableType.MachO, ContentUtil.GetExecutableType(machoFile)); 2970Assert.Equal(ExecutableType.None, ContentUtil.GetExecutableType(unknownFile)); 2976Assert.Equal(ExecutableType.None, ContentUtil.GetExecutableType(emptyFile)); 2982Assert.Equal(ExecutableType.None, ContentUtil.GetExecutableType(smallPeFile)); 2988Assert.Equal(ExecutableType.None, ContentUtil.GetExecutableType(incompletePeFile));