9 references to HashAlgorithmType
Microsoft.AspNetCore.DataProtection (9)
Managed\HashAlgorithmExtensions.cs (4)
19public static HashAlgorithmType GetHashAlgorithmType(this KeyedHashAlgorithm type) => type switch 21HMACSHA256 => HashAlgorithmType.HMACSHA256, 22HMACSHA512 => HashAlgorithmType.HMACSHA512, 23_ => HashAlgorithmType.Other,
Managed\ManagedAuthenticatedEncryptor.cs (5)
49private readonly HashAlgorithmType _validationAlgorithmType; 272if (_validationAlgorithmType is HashAlgorithmType.HMACSHA256) 276else if (_validationAlgorithmType is HashAlgorithmType.HMACSHA512) 443if (_validationAlgorithmType is HashAlgorithmType.HMACSHA256) 447else if (_validationAlgorithmType is HashAlgorithmType.HMACSHA512)