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; 259if (_validationAlgorithmType is HashAlgorithmType.HMACSHA256) 263else if (_validationAlgorithmType is HashAlgorithmType.HMACSHA512) 422if (_validationAlgorithmType is HashAlgorithmType.HMACSHA256) 426else if (_validationAlgorithmType is HashAlgorithmType.HMACSHA512)