39 references to ComputeHash
csc (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
573var bytes = sha.ComputeHash(Encoding.UTF8.GetBytes(pipeNameInput));
dotnet-svcutil-lib (1)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (1)
580byte[] digestBytes = HashAlgorithm.ComputeHash(inputBytes);
Microsoft.Arcade.Common (1)
Helpers.cs (1)
26var dirHash = Convert.ToBase64String(hasher.ComputeHash(Encoding.UTF8.GetBytes(normalizedPath)));
Microsoft.AspNetCore.Cryptography.KeyDerivation (2)
PBKDF2\ManagedPbkdf2Provider.cs (2)
47byte[] U_iter = hashAlgorithm.ComputeHash(saltWithBlockIndex); // this is U_1 52U_iter = hashAlgorithm.ComputeHash(U_iter);
Microsoft.AspNetCore.DataProtection (2)
Managed\ManagedAuthenticatedEncryptor.cs (1)
128var digest = hashAlg.ComputeHash(EMPTY_ARRAY);
SP800_108\ManagedSP800_108_CTR_HMACSHA512.cs (1)
45var prfOutput = prf.ComputeHash(prfInput);
Microsoft.Build (2)
CommunicationsUtilities.cs (1)
181var bytes = sha.ComputeHash(Encoding.UTF8.GetBytes(input));
Evaluation\IntrinsicFunctions.cs (1)
451foreach (byte theByte in sha.ComputeHash(Encoding.UTF8.GetBytes(toHash)))
Microsoft.Build.Tasks.CodeAnalysis (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
573var bytes = sha.ComputeHash(Encoding.UTF8.GetBytes(pipeNameInput));
Microsoft.CodeAnalysis (1)
CryptographicHashProvider.cs (1)
194return ImmutableArray.Create(hashProvider.ComputeHash(bytes));
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
PdbSourceDocument\PdbSourceDocumentLoaderServiceTests.cs (1)
46var fileHash = hash.ComputeHash(File.ReadAllBytes(sourceFilePath));
Microsoft.CodeAnalysis.Workspaces (2)
Log\AnalyzerNameForTelemetry.cs (1)
16return Convert.ToBase64String(sha256.ComputeHash(Encoding.UTF8.GetBytes(name)));
Workspace\Solution\SourceGeneratedDocumentIdentity.cs (1)
66var hash = crytpoAlgorithm.ComputeHash(hashInput.ToArray());
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
SolutionTests\SolutionTests.cs (2)
1611var checksumSHA1 = sha1.ComputeHash(bytes); 1612var checksumSHA256 = sha256.ComputeHash(bytes);
Microsoft.DotNet.Arcade.Sdk (1)
src\GenerateSourcePackageSourceLinkTargetsFile.cs (1)
110hash = BitConverter.ToString(hashAlg.ComputeHash(Encoding.UTF8.GetBytes(packageId)), 0, 20).Replace("-", "");
Microsoft.DotNet.Build.Tasks.Installers (1)
src\GenerateGuidFromName.cs (1)
36var hashResult = hasher.ComputeHash(streamToHash);
Microsoft.DotNet.Build.Tasks.VisualStudio (1)
Vsix\GetPkgDefAssemblyDependencyGuid.cs (1)
54fullHash = sha2.ComputeHash(Encoding.UTF8.GetBytes(value));
Microsoft.DotNet.Build.Tasks.Workloads (2)
Utils.cs (2)
30foreach (byte b in algorithm.ComputeHash(bytes)) 152hash = sha256.ComputeHash(hashBuffer);
Microsoft.DotNet.SignCheckLibrary (6)
Utils.cs (1)
23byte[] hash = ha.ComputeHash(bytes);
Verification\Jar\JarManifestFile.cs (1)
70byte[] hashValue = hashAlgorithm.ComputeHash(new UTF8Encoding().GetBytes(input.ToCharArray()));
Verification\Jar\JarManifestFileBase.cs (1)
135byte[] hashValue = hashAlgorithm.ComputeHash(new UTF8Encoding().GetBytes(ManifestText.ToCharArray()));
Verification\Jar\JarSignatureFile.cs (2)
213byte[] hash = sha.ComputeHash(signatureFileBytes); 244byte[] hash = sha.ComputeHash(signatureFileBytes);
Verification\Jar\JarUtils.cs (1)
53byte[] hashValue = hashAlgorithm.ComputeHash(new UTF8Encoding().GetBytes(input.ToCharArray()));
Microsoft.Extensions.Identity.Core (1)
Rfc6238AuthenticationService.cs (1)
56var hash = hashAlgorithm.ComputeHash(ApplyModifier(timestepAsBytes, modifierBytes));
MSBuild (1)
CommunicationsUtilities.cs (1)
181var bytes = sha.ComputeHash(Encoding.UTF8.GetBytes(input));
MSBuildTaskHost (1)
CommunicationsUtilities.cs (1)
181var bytes = sha.ComputeHash(Encoding.UTF8.GetBytes(input));
Replay (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
573var bytes = sha.ComputeHash(Encoding.UTF8.GetBytes(pipeNameInput));
System.Private.CoreLib.Generators (1)
EventSourceGenerator.Parser.cs (1)
117bytes = sha.ComputeHash(combinedBytes);
System.Security.Cryptography (1)
System\Security\Cryptography\PasswordDeriveBytes.cs (1)
216_hash.ComputeHash(_baseValue!);
System.Security.Cryptography.Xml (2)
System\Security\Cryptography\Xml\SymmetricKeyWrap.cs (2)
27rgbCKS = sha.ComputeHash(rgbWrappedKeyData); 105byte[] rgbCKS = sha.ComputeHash(rgbWrappedKeyData);
System.ServiceModel.NetNamedPipe (1)
System\ServiceModel\Channels\PipeConnectionInitiator.cs (1)
365hashedBytes = hash.ComputeHash(canonicalBytes);
vbc (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
573var bytes = sha.ComputeHash(Encoding.UTF8.GetBytes(pipeNameInput));
VBCSCompiler (1)
src\Compilers\Shared\BuildServerConnection.cs (1)
573var bytes = sha.ComputeHash(Encoding.UTF8.GetBytes(pipeNameInput));
VisualBasicSyntaxGenerator (1)
Program.vb (1)
100Dim hashBytes = func.ComputeHash(fileBytes)