11 references to StringHashingAlgorithm
Microsoft.Build (10)
Evaluation\Expander.cs (2)
4300
else if (TryGetArgs(args, out string arg1, out string arg2) && Enum.TryParse<IntrinsicFunctions.
StringHashingAlgorithm
>(arg2, true, out
var
hashAlgorithm))
Evaluation\IntrinsicFunctions.cs (8)
433
=> StableStringHash(toHash,
StringHashingAlgorithm
.Legacy);
435
internal static object StableStringHash(string toHash,
StringHashingAlgorithm
algo) =>
438
StringHashingAlgorithm
.Legacy => CommunicationsUtilities.GetHashCode(toHash),
439
StringHashingAlgorithm
.Fnv1a32bit => FowlerNollVo1aHash.ComputeHash32(toHash),
440
StringHashingAlgorithm
.Fnv1a32bitFast => FowlerNollVo1aHash.ComputeHash32Fast(toHash),
441
StringHashingAlgorithm
.Fnv1a64bit => FowlerNollVo1aHash.ComputeHash64(toHash),
442
StringHashingAlgorithm
.Fnv1a64bitFast => FowlerNollVo1aHash.ComputeHash64Fast(toHash),
443
StringHashingAlgorithm
.Sha256 => CalculateSha256(toHash),
Microsoft.Build.Engine.UnitTests (1)
Evaluation\Expander_Tests.cs (1)
3950
=> Enum.GetNames(typeof(IntrinsicFunctions.
StringHashingAlgorithm
))