in JetBrains.SbomUtils/src/JetBrains.SbomUtils/ZipArchiveSoftwareProvider.cs [63:73]
public Dictionary<ChecksumAlgorithm, byte[]> CalculateFileHashes(string installationFile, IEnumerable<ChecksumAlgorithm> algorithms)
{
var entry = _zipArchive.GetEntry(installationFile.Replace('\\', '/'));
if (entry == null)
throw new FileNotFoundException($"File {installationFile} not found");
using var stream = entry.Open();
return HashCalculator.ComputeHashes(stream, algorithms);
}