8 references to Utils
Microsoft.DotNet.SignCheckLibrary (8)
Verification\ArchiveVerifier.cs (3)
155
string hashedPath = String.IsNullOrEmpty(directoryName) ?
Utils
.GetHash(@".\", HashAlgorithmName.SHA256.Name) :
156
Utils
.GetHash(directoryName, HashAlgorithmName.SHA256.Name);
161
Utils
.GetHash(archiveEntry.RelativePath, HashAlgorithmName.SHA256.Name) + Path.GetExtension(archiveEntry.RelativePath); // lgtm [cs/zipslip] Archive from trusted source
Verification\Exclusions.cs (1)
161
string regexPattern =
Utils
.ConvertToRegexPattern(pattern);
Verification\Jar\JarManifestFile.cs (2)
51
HashAlgorithm ha =
Utils
.CreateHashAlgorithm(entry.HashAlgorithmName);
68
using (HashAlgorithm hashAlgorithm =
Utils
.CreateHashAlgorithm(algorithmName))
Verification\Jar\JarManifestFileBase.cs (1)
133
using (HashAlgorithm hashAlgorithm =
Utils
.CreateHashAlgorithm(algorithmName))
Verification\Jar\JarUtils.cs (1)
51
using (HashAlgorithm hashAlgorithm =
Utils
.CreateHashAlgorithm(algorithmName))