12 references to HMACSHA256
Microsoft.AspNetCore.DataProtection (4)
AuthenticatedEncryption\AuthenticatedEncryptorFactory.cs (2)
155
case ValidationAlgorithm.
HMACSHA256
:
189
case ValidationAlgorithm.
HMACSHA256
:
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorConfiguration.cs (2)
26
/// The default value is <see cref="ValidationAlgorithm.
HMACSHA256
"/>.
29
public ValidationAlgorithm ValidationAlgorithm { get; set; } = ValidationAlgorithm.
HMACSHA256
;
Microsoft.AspNetCore.DataProtection.Tests (8)
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptorTests.cs (8)
23
[InlineData(EncryptionAlgorithm.AES_128_CBC, ValidationAlgorithm.
HMACSHA256
)]
24
[InlineData(EncryptionAlgorithm.AES_192_CBC, ValidationAlgorithm.
HMACSHA256
)]
25
[InlineData(EncryptionAlgorithm.AES_256_CBC, ValidationAlgorithm.
HMACSHA256
)]
68
var test = CreateEncryptorInstanceFromDescriptor(CreateDescriptor(encryptionAlgorithm, ValidationAlgorithm.
HMACSHA256
/* unused */, masterKey));
94
var test = CreateEncryptorInstanceFromDescriptor(CreateDescriptor(encryptionAlgorithm, ValidationAlgorithm.
HMACSHA256
/* unused */, masterKey));
107
{ EncryptionAlgorithm.AES_128_CBC, ValidationAlgorithm.
HMACSHA256
, () => new HMACSHA256() },
108
{ EncryptionAlgorithm.AES_192_CBC, ValidationAlgorithm.
HMACSHA256
, () => new HMACSHA256() },
109
{ EncryptionAlgorithm.AES_256_CBC, ValidationAlgorithm.
HMACSHA256
, () => new HMACSHA256() },