2 types derived from KeyedHashAlgorithm
Microsoft.AspNetCore.DataProtection.Tests (1)
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptorTests.cs (1)
94private sealed class MyKeyedHashAlgorithm : KeyedHashAlgorithm
System.Security.Cryptography (1)
System\Security\Cryptography\HMAC.cs (1)
8public abstract class HMAC : KeyedHashAlgorithm
43 references to KeyedHashAlgorithm
dotnet-svcutil-lib (3)
FrameworkFork\System.ServiceModel\System\IdentityModel\CryptoHelper.cs (1)
60internal static KeyedHashAlgorithm CreateKeyedHashAlgorithm(byte[] key, string algorithm)
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SymmetricKey.cs (1)
83public override KeyedHashAlgorithm GetKeyedHashAlgorithm(string algorithm)
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SymmetricSecurityKey.cs (1)
21public abstract KeyedHashAlgorithm GetKeyedHashAlgorithm(string algorithm);
Microsoft.AspNetCore.Cryptography.KeyDerivation (2)
PBKDF2\ManagedPbkdf2Provider.cs (2)
35using (var hashAlgorithm = PrfToManagedHmacAlgorithm(prf, password)) 69private static KeyedHashAlgorithm PrfToManagedHmacAlgorithm(KeyDerivationPrf prf, string password)
Microsoft.AspNetCore.DataProtection (13)
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorConfiguration.cs (2)
14/// <see cref="System.Security.Cryptography.KeyedHashAlgorithm"/> types. 44/// Type type must subclass <see cref="KeyedHashAlgorithm"/>.
AuthenticatedEncryption\ManagedAuthenticatedEncryptorFactory.cs (3)
58private Func<KeyedHashAlgorithm> GetKeyedHashAlgorithmFactory(ManagedAuthenticatedEncryptorConfiguration configuration) 66typeof(KeyedHashAlgorithm).AssertIsAssignableFrom(configuration.ValidationAlgorithmType); 78return AlgorithmActivator.CreateFactory<KeyedHashAlgorithm>(configuration.ValidationAlgorithmType);
Managed\ManagedAuthenticatedEncryptor.cs (8)
39private readonly Func<KeyedHashAlgorithm> _validationAlgorithmFactory; 41public ManagedAuthenticatedEncryptor(Secret keyDerivationKey, Func<SymmetricAlgorithm> symmetricAlgorithmFactory, int symmetricAlgorithmKeySizeInBytes, Func<KeyedHashAlgorithm> validationAlgorithmFactory, IManagedGenRandom? genRandom = null) 55using (var validationAlgorithm = validationAlgorithmFactory()) 126using (var hashAlg = CreateValidationAlgorithm(new ArraySegment<byte>(tempKeys, _symmetricAlgorithmSubkeyLengthInBytes, _validationAlgorithmSubkeyLengthInBytes).AsStandaloneArray())) 150private KeyedHashAlgorithm CreateValidationAlgorithm(byte[] key) 152var retVal = _validationAlgorithmFactory(); 224using (var hashAlgorithm = CreateValidationAlgorithm(validationSubkey)) 344using (var validationAlgorithm = CreateValidationAlgorithm(validationSubkey))
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
892[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.KeyedHashAlgorithm))]
netstandard (1)
netstandard.cs (1)
1890[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.KeyedHashAlgorithm))]
System.Security.Cryptography (3)
System\Security\Cryptography\KeyedHashAlgorithm.cs (3)
14public static new KeyedHashAlgorithm Create() => 19public static new KeyedHashAlgorithm? Create(string algName) => 20CryptoConfigForwarder.CreateFromName<KeyedHashAlgorithm>(algName);
System.Security.Cryptography.Primitives (1)
System.Security.Cryptography.Primitives.cs (1)
18[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.KeyedHashAlgorithm))]
System.Security.Cryptography.Xml (6)
System\Security\Cryptography\Xml\SignedXml.cs (4)
316public bool CheckSignature(KeyedHashAlgorithm macAlg) 438public void ComputeSignature(KeyedHashAlgorithm macAlg) 794bool isKeyedHashAlgorithm = hash is KeyedHashAlgorithm; 1054private bool CheckSignedInfo(KeyedHashAlgorithm macAlg)
System\Security\Cryptography\Xml\SignedXmlDebugLog.cs (2)
661internal static void LogSigning(SignedXml signedXml, KeyedHashAlgorithm key) 906KeyedHashAlgorithm mac,
System.ServiceModel.Primitives (12)
System\IdentityModel\CryptoHelper.cs (6)
59internal static KeyedHashAlgorithm CreateKeyedHashAlgorithm(byte[] key, string algorithm) 65KeyedHashAlgorithm keyedHashAlgorithm = algorithmObject as KeyedHashAlgorithm; 114KeyedHashAlgorithm keyedHashAlgorithm = algorithmObject as KeyedHashAlgorithm; 366internal static KeyedHashAlgorithm NewHmacSha1KeyedHashAlgorithm(byte[] key)
System\IdentityModel\Psha1DerivedKeyGenerator.cs (1)
41private KeyedHashAlgorithm _hmac;
System\IdentityModel\Tokens\SymmetricKey.cs (1)
79public override KeyedHashAlgorithm GetKeyedHashAlgorithm(string algorithm)
System\IdentityModel\Tokens\SymmetricSecurityKey.cs (1)
19public abstract KeyedHashAlgorithm GetKeyedHashAlgorithm(string algorithm);
System\ServiceModel\Security\WSSecurityOneDotZeroSendSecurityHeader.cs (3)
28private KeyedHashAlgorithm _signingKey; 540private void GetSigningAlgorithm(SecurityKey signatureKey, string algorithmName, out KeyedHashAlgorithm symmetricAlgorithm, out AsymmetricAlgorithm asymmetricAlgorithm) 605KeyedHashAlgorithm keyedHashAlgorithm = null;
System.ServiceModel.Primitives.Tests (1)
IdentityModel\SymmetricSecurityKeyTest.cs (1)
66public override KeyedHashAlgorithm GetKeyedHashAlgorithm(string algorithm)