29 references to StrongName
Microsoft.DotNet.SignTool (4)
src\Configuration.cs (1)
377isAlreadyStrongNamed = StrongName.IsSigned(file.FullPath, snPath:_snPath, log: _log);
src\RealSignTool.cs (2)
84StrongName.ClearStrongNameSignedBit(assemblyPath); 105return StrongName.IsSigned(fileFullPath, snPath:_snPath, log: _log);
src\SignTool.cs (1)
229return StrongName.Sign(file.FullPath, file.SignInfo.StrongName, _args.SNBinaryPath, _log);
Microsoft.DotNet.SignTool.Tests (25)
SignToolTests.cs (25)
2758StrongName.IsSigned(GetResourcePath("AspNetCoreCrossLib.dll")).Should().BeFalse(); 2759StrongName.IsSigned(GetResourcePath("CoreLibCrossARM.dll")).Should().BeFalse(); 2760StrongName.IsSigned(GetResourcePath("EmptyPKT.dll")).Should().BeFalse(); 2761StrongName.IsSigned(GetResourcePath("DelaySigned.dll")).Should().BeFalse(); 2762StrongName.IsSigned(GetResourcePath("ProjectOne.dll")).Should().BeFalse(); 2829int checksumStart = peHeaders.PEHeaderStartOffset + StrongName.ChecksumOffsetInPEHeader; 2831StrongName.IsSigned(outputStream).Should().BeTrue(); 2843int checksumStart = peHeaders.PEHeaderStartOffset + StrongName.ChecksumOffsetInPEHeader; 2845StrongName.IsSigned(outputStream).Should().BeFalse(); 2859int checksumStart = peHeaders.PEHeaderStartOffset + StrongName.ChecksumOffsetInPEHeader; 2863StrongName.IsSigned(outputStream).Should().BeFalse(); 2869StrongName.IsSigned(GetResourcePath("SignedLibrary.dll")).Should().BeTrue(); 2870StrongName.IsSigned(GetResourcePath("StrongNamedWithEcmaKey.dll")).Should().BeTrue(); 2876StrongName.IsSigned_Legacy(GetResourcePath("SignedLibrary.dll"), s_snPath).Should().BeTrue(); 2877StrongName.IsSigned_Legacy(GetResourcePath("StrongNamedWithEcmaKey.dll"), s_snPath).Should().BeTrue(); 2887StrongName.IsSigned(resourcePath).Should().Be(initiallySigned); 2888StrongName.Sign(resourcePath, GetResourcePath(key)); 2889StrongName.IsSigned(resourcePath).Should().BeTrue(); 2892StrongName.IsSigned_Legacy(resourcePath, s_snPath).Should().Be( 2904StrongName.IsSigned_Legacy(resourcePath, s_snPath).Should().Be(initiallySigned); 2906StrongName.ClearStrongNameSignedBit(resourcePath); 2907StrongName.Sign_Legacy(resourcePath, GetResourcePath(key), s_snPath).Should().BeTrue(); 2908StrongName.IsSigned(resourcePath).Should().BeTrue(); 2917Action shouldFail = () => StrongName.Sign(inputStream, GetResourcePath("OpenSignedCorrespondingKey.snk")); 2928Action shouldFail = () => StrongName.Sign(inputStream, GetResourcePath("OpenSignedCorrespondingKey.snk"));