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