10 instantiations of HMACSHA256
Microsoft.AspNetCore.Cryptography.KeyDerivation (1)
PBKDF2\ManagedPbkdf2Provider.cs (1)
79return new HMACSHA256(passwordBytes);
Microsoft.AspNetCore.DataProtection (1)
AuthenticatedEncryption\ManagedAuthenticatedEncryptorFactory.cs (1)
70return () => new HMACSHA256();
Microsoft.AspNetCore.DataProtection.Tests (6)
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptorTests.cs (3)
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() },
Managed\ManagedAuthenticatedEncryptorTests.cs (3)
19validationAlgorithmFactory: () => new HMACSHA256()); 39validationAlgorithmFactory: () => new HMACSHA256()); 85validationAlgorithmFactory: () => new HMACSHA256(),
System.ServiceModel.Primitives (2)
System\IdentityModel\CryptoHelper.cs (2)
82return new HMACSHA256(key); 252return new HMACSHA256();
15 references to HMACSHA256
Microsoft.AspNetCore.Authentication.Facebook (1)
FacebookHandler.cs (1)
71var hash = HMACSHA256.HashData(key, tokenBytes);
Microsoft.AspNetCore.DataProtection (6)
AuthenticatedEncryption\AuthenticatedEncryptorFactory.cs (1)
190return typeof(HMACSHA256);
AuthenticatedEncryption\ConfigurationModel\ManagedAlgorithmHelpers.cs (1)
18typeof(HMACSHA256),
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorConfiguration.cs (3)
53public Type ValidationAlgorithmType { get; set; } = typeof(HMACSHA256); 93else if (type == typeof(HMACSHA256)) 95return nameof(HMACSHA256);
AuthenticatedEncryption\ManagedAuthenticatedEncryptorFactory.cs (1)
68if (configuration.ValidationAlgorithmType == typeof(HMACSHA256))
Microsoft.AspNetCore.DataProtection.Tests (2)
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptorDeserializerTests.cs (1)
16[InlineData(typeof(Aes), typeof(HMACSHA256))]
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptorTests.cs (1)
41[InlineData(typeof(Aes), typeof(HMACSHA256))]
Microsoft.Extensions.Compliance.Redaction (1)
HmacRedactor.cs (1)
84_ = HMACSHA256.HashData(hashKey, MemoryMarshal.AsBytes(source), hashBuffer);
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
887[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.HMACSHA256))]
netstandard (1)
netstandard.cs (1)
1884[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.HMACSHA256))]
System.Security.Cryptography (2)
System\Security\Cryptography\CryptoConfig.cs (1)
117Type HMACSHA256Type = typeof(System.Security.Cryptography.HMACSHA256);
System\Security\Cryptography\Helpers.cs (1)
359return HMACSHA256.HashSizeInBytes;
System.Security.Cryptography.Algorithms (1)
System.Security.Cryptography.Algorithms.cs (1)
30[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.HMACSHA256))]