11 references to StringHashingAlgorithm
Microsoft.Build (10)
Evaluation\Expander\WellKnownFunctions.cs (2)
650else if (ParseArgs.TryGetArgs(args, out string? arg1, out string? arg2) && Enum.TryParse<IntrinsicFunctions.StringHashingAlgorithm>(arg2, true, out var hashAlgorithm) && arg1 != null && arg2 != null)
Evaluation\IntrinsicFunctions.cs (8)
453=> StableStringHash(toHash, StringHashingAlgorithm.Legacy); 455internal static object StableStringHash(string toHash, StringHashingAlgorithm algo) => 458StringHashingAlgorithm.Legacy => CommunicationsUtilities.GetHashCode(toHash), 459StringHashingAlgorithm.Fnv1a32bit => FowlerNollVo1aHash.ComputeHash32(toHash), 460StringHashingAlgorithm.Fnv1a32bitFast => FowlerNollVo1aHash.ComputeHash32Fast(toHash), 461StringHashingAlgorithm.Fnv1a64bit => FowlerNollVo1aHash.ComputeHash64(toHash), 462StringHashingAlgorithm.Fnv1a64bitFast => FowlerNollVo1aHash.ComputeHash64Fast(toHash), 463StringHashingAlgorithm.Sha256 => CalculateSha256(toHash),
Microsoft.Build.Engine.UnitTests (1)
Evaluation\Expander_Tests.cs (1)
3950=> Enum.GetNames(typeof(IntrinsicFunctions.StringHashingAlgorithm))