33 references to ComputeHash
BuildBoss (1)
CompilerNuGetCheckerUtil.cs (1)
334return BitConverter.ToString(hash.ComputeHash(stream));
dotnet-openapi (1)
Commands\BaseCommand.cs (1)
504return algorithm.ComputeHash(stream);
Microsoft.AspNetCore.Identity.Test (3)
IdentityUIScriptsTest.cs (3)
57hash = alg256.ComputeHash(respStream); 60hash = alg384.ComputeHash(respStream); 64hash = alg512.ComputeHash(respStream);
Microsoft.Build.Tasks.Core (7)
BootstrapperUtil\BootstrapperBuilder.cs (1)
1633retVal = ByteArrayToString(sha.ComputeHash(s));
FileIO\GetFileHash.cs (1)
149return algorithm.ComputeHash(stream);
ManifestUtil\mansign2.cs (4)
577byte[] hash = sha2.ComputeHash(exc.GetOutput() as MemoryStream); 597byte[] hash = sha1.ComputeHash(exc.GetOutput() as MemoryStream); 640byte[] hash = sha2.ComputeHash(exc.GetOutput() as MemoryStream); 660byte[] hash = sha1.ComputeHash(exc.GetOutput() as MemoryStream);
ManifestUtil\Util.cs (1)
267byte[] hashBytes = hashAlg.ComputeHash(s);
Microsoft.CodeAnalysis (4)
CryptographicHashProvider.cs (1)
177return ImmutableArray.Create(hashProvider.ComputeHash(stream));
MetadataReader\PEModule.cs (1)
184hash = algorithm.ComputeHash(stream);
ResourceDescription.cs (1)
121return ImmutableArray.CreateRange(algorithm.ComputeHash(stream));
Text\SourceText.cs (1)
701return ImmutableArray.Create(algorithm.ComputeHash(stream));
Microsoft.DotNet.Arcade.Sdk (1)
src\GenerateChecksums.cs (1)
46byte[] hash = hashAlgorithm.ComputeHash(stream);
Microsoft.DotNet.Build.Tasks.Feed (2)
src\AzureStorageExtensions.cs (1)
21byte[] hash = md5.ComputeHash(stream);
src\common\AzureStorageUtils.cs (1)
92var hash = md5.ComputeHash(stream);
Microsoft.DotNet.Build.Tasks.Installers (5)
src\CreateMD5SumsFile.cs (1)
40byte[] hash = md5.ComputeHash(fileStream);
src\RpmBuilder.cs (4)
369entries.Add(new(RpmHeaderTag.CompressedPayloadDigest, RpmHeaderEntryType.StringArray, new string[] { HexConverter.ToHexStringLower(sha256.ComputeHash(compressedPayload)) })); 370entries.Add(new(RpmHeaderTag.UncompressedPayloadDigest, RpmHeaderEntryType.StringArray, new string[] { HexConverter.ToHexStringLower(sha256.ComputeHash(cpioArchive)) })); 392signatureEntries.Add(new(RpmSignatureTag.Sha1Header, RpmHeaderEntryType.String, HexConverter.ToHexStringLower(sha1.ComputeHash(headerStream)))); 397signatureEntries.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.DotNet.SignCheckLibrary (1)
Verification\Jar\JarManifestFile.cs (1)
52byte[] computedHash = ha.ComputeHash(stream);
Microsoft.DotNet.SignTool (1)
src\ContentUtil.cs (1)
31return ImmutableArray.Create(sha2.ComputeHash(stream));
PresentationBuildTasks (1)
MS\Internal\Tasks\TaskFileService.cs (1)
204hashData = hashAlgorithm.ComputeHash(fileStream);
SemanticSearch.BuildTask (1)
GenerateFilteredReferenceAssembliesTask.cs (1)
488return BlobContentId.FromHash(sha.ComputeHash(stream)).Guid;
System.Configuration.ConfigurationManager (1)
src\libraries\Common\src\System\Security\IdentityHelper.cs (1)
70return ToBase32StringSuitableForDirName(sha1.ComputeHash(stream));
System.IO.IsolatedStorage (1)
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)
487hashval = _hashAlgorithm.ComputeHash(hashInputStream!);
System\Security\Cryptography\Xml\Transform.cs (1)
156return hash.ComputeHash((Stream)GetOutput(typeof(Stream)));