38 references to ComputeHash
ILCompiler.ReadyToRun (1)
Compiler\CryptographicHashProvider.cs (1)
193return ImmutableArray.Create(hashProvider.ComputeHash(stream));
Microsoft.Build.Tasks.Core (4)
BootstrapperUtil\BootstrapperBuilder.cs (1)
1637retVal = ByteArrayToString(sha.ComputeHash(s));
ManifestUtil\mansign2.cs (2)
586byte[] hash = sha2.ComputeHash(exc.GetOutput() as MemoryStream); 606byte[] hash = sha1.ComputeHash(exc.GetOutput() as MemoryStream);
ManifestUtil\Util.cs (1)
250byte[] hashBytes = hashAlg.ComputeHash(s);
Microsoft.CodeAnalysis (4)
CryptographicHashProvider.cs (1)
195return ImmutableArray.Create(hashProvider.ComputeHash(stream));
MetadataReader\PEModule.cs (1)
185hash = algorithm.ComputeHash(stream);
ResourceDescription.cs (1)
121return ImmutableArray.CreateRange(algorithm.ComputeHash(stream));
Text\SourceText.cs (1)
705return ImmutableArray.Create(algorithm.ComputeHash(stream));
Microsoft.Deployment.DotNet.Releases (1)
Utils.cs (1)
104byte[] checksum = hashAlgorithm.ComputeHash(stream);
Microsoft.DotNet.Arcade.Sdk (1)
src\GenerateChecksums.cs (1)
46byte[] hash = hashAlgorithm.ComputeHash(stream);
Microsoft.DotNet.Build.Tasks.Installers (6)
src\CreateMD5SumsFile.cs (1)
40byte[] hash = md5.ComputeHash(fileStream);
src\RpmBuilder.cs (5)
256fileDigests.Add(HexConverter.ToHexStringLower(sha256.ComputeHash(file.DataStream))); 382entries.Add(new(RpmHeaderTag.CompressedPayloadDigest, RpmHeaderEntryType.StringArray, new string[] { HexConverter.ToHexStringLower(sha256.ComputeHash(compressedPayload)) })); 383entries.Add(new(RpmHeaderTag.UncompressedPayloadDigest, RpmHeaderEntryType.StringArray, new string[] { HexConverter.ToHexStringLower(sha256.ComputeHash(cpioArchive)) })); 405signatureEntries.Add(new(RpmSignatureTag.Sha1Header, RpmHeaderEntryType.String, HexConverter.ToHexStringLower(sha1.ComputeHash(headerStream)))); 410signatureEntries.Add(new(RpmSignatureTag.Sha256Header, RpmHeaderEntryType.String, HexConverter.ToHexStringLower(sha256.ComputeHash(headerStream))));
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Vsix\FinalizeInsertionVsixFile.cs (1)
69hash = sha.ComputeHash(newContent);
Microsoft.Maui (1)
Services\Crc64.cs (1)
16 return algorithm.ComputeHash(inputStream);
Microsoft.Maui.Controls.SourceGen (1)
src\Core\src\Services\Crc64.cs (1)
16 return algorithm.ComputeHash(inputStream);
Microsoft.NET.Build.Tasks (1)
ResolvePackageAssets.cs (1)
510return hash.ComputeHash(stream);
Microsoft.NET.HostModel (1)
Bundle\Manifest.cs (1)
132return sha.ComputeHash(stream);
Microsoft.NET.Sdk.BlazorWebAssembly.Tasks (1)
GenerateServiceWorkerAssetsManifest.cs (1)
49var bytes = sha.ComputeHash(file);
Microsoft.NET.Sdk.StaticWebAssets.Tasks (3)
Data\StaticAssetsManifest.cs (1)
59return Convert.ToBase64String(sha256.ComputeHash(stream));
Utils\HashingUtils.cs (2)
25return sha256.ComputeHash(memoryStream); 47return sha256.ComputeHash(memoryStream);
Mono.Cecil.Mdb (2)
Mono.CompilerServices.SymbolWriter\MonoSymbolTable.cs (2)
733 hash = md5.ComputeHash (fs); 792 byte[] data = md5.ComputeHash (fs);
NuGet.Common (3)
CryptoHashProvider.cs (1)
66return hashAlgorithm.ComputeHash(stream);
CryptoHashUtility.cs (2)
58hash = Convert.ToBase64String(hashAlgorithm.ComputeHash(data)); 117hash = hashAlgorithm.ComputeHash(data);
NuGet.Protocol (1)
Utility\OfflineFeedUtility.cs (1)
254packageHash = Convert.ToBase64String(sha512.ComputeHash(nupkgStream));
PresentationBuildTasks (1)
MS\Internal\Tasks\TaskFileService.cs (1)
201hashData = hashAlgorithm.ComputeHash(fileStream);
rzc (1)
DiscoverCommand.cs (1)
222sha.ComputeHash(stream);
System.Configuration.ConfigurationManager (1)
src\runtime\src\libraries\Common\src\System\Security\IdentityHelper.cs (1)
70return ToBase32StringSuitableForDirName(sha1.ComputeHash(stream));
System.IO.IsolatedStorage (1)
src\runtime\src\libraries\Common\src\System\Security\IdentityHelper.cs (1)
70return ToBase32StringSuitableForDirName(sha1.ComputeHash(stream));
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\Reference.cs (1)
481hashval = _hashAlgorithm.ComputeHash(hashInputStream!);
System\Security\Cryptography\Xml\Transform.cs (1)
156return hash.ComputeHash((Stream)GetOutput(typeof(Stream)));