18 references to ContentUtil
Microsoft.DotNet.SignTool (11)
src\Configuration.cs (6)
155var contentHash = ContentUtil.GetContentHash(itemToSign.FullPath); 324ExecutableType executableType = ContentUtil.GetExecutableType(file.FullPath); 328if (file.ContentHash == ContentUtil.EmptyFileContentHash) 692bool isManaged = ContentUtil.IsManaged(fullPath); 699bool isCrossgened = ContentUtil.IsCrossgened(fullPath); 700string 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)
3229Assert.Equal(ExecutableType.PE, ContentUtil.GetExecutableType(peFile)); 3233Assert.Equal(ExecutableType.ELF, ContentUtil.GetExecutableType(elfFile)); 3238Assert.Equal(ExecutableType.MachO, ContentUtil.GetExecutableType(machoFile)); 3244Assert.Equal(ExecutableType.None, ContentUtil.GetExecutableType(unknownFile)); 3250Assert.Equal(ExecutableType.None, ContentUtil.GetExecutableType(emptyFile)); 3256Assert.Equal(ExecutableType.None, ContentUtil.GetExecutableType(smallPeFile)); 3262Assert.Equal(ExecutableType.None, ContentUtil.GetExecutableType(incompletePeFile));