12 references to HMACSHA512
Microsoft.AspNetCore.DataProtection (2)
AuthenticatedEncryption\AuthenticatedEncryptorFactory.cs (2)
158
case ValidationAlgorithm.
HMACSHA512
:
192
case ValidationAlgorithm.
HMACSHA512
:
Microsoft.AspNetCore.DataProtection.Tests (10)
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptorDeserializerTests.cs (1)
24
ValidationAlgorithm = ValidationAlgorithm.
HMACSHA512
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptorTests.cs (8)
28
[InlineData(EncryptionAlgorithm.AES_128_CBC, ValidationAlgorithm.
HMACSHA512
)]
29
[InlineData(EncryptionAlgorithm.AES_192_CBC, ValidationAlgorithm.
HMACSHA512
)]
30
[InlineData(EncryptionAlgorithm.AES_256_CBC, ValidationAlgorithm.
HMACSHA512
)]
112
{ EncryptionAlgorithm.AES_128_CBC, ValidationAlgorithm.
HMACSHA512
, () => new HMACSHA512() },
113
{ EncryptionAlgorithm.AES_192_CBC, ValidationAlgorithm.
HMACSHA512
, () => new HMACSHA512() },
114
{ EncryptionAlgorithm.AES_256_CBC, ValidationAlgorithm.
HMACSHA512
, () => new HMACSHA512() },
149
var descriptor = CreateDescriptor(EncryptionAlgorithm.AES_192_CBC, ValidationAlgorithm.
HMACSHA512
, masterKey.ToSecret());
172
var descriptor = CreateDescriptor(EncryptionAlgorithm.AES_192_GCM, ValidationAlgorithm.
HMACSHA512
, masterKey.ToSecret());
KeyManagement\KeyRingBasedDataProtectorTests.cs (1)
642
[InlineData("This is a medium length plaintext message", EncryptionAlgorithm.AES_256_CBC, ValidationAlgorithm.
HMACSHA512
)]