1 type derived from KeyedHashAlgorithm
System.Security.Cryptography (1)
System\Security\Cryptography\HMAC.cs (1)
8public abstract class HMAC : KeyedHashAlgorithm
47 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 (17)
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorConfiguration.cs (2)
14/// <see cref="System.Security.Cryptography.KeyedHashAlgorithm"/> types. 44/// Type type must subclass <see cref="KeyedHashAlgorithm"/>.
AuthenticatedEncryption\ManagedAuthenticatedEncryptorFactory.cs (4)
59private static Func<byte[], KeyedHashAlgorithm>? GetKeyedValidationAlgorithmFactory(Type algorithmType) => algorithmType switch 69private Func<KeyedHashAlgorithm> GetKeyedHashAlgorithmFactory(ManagedAuthenticatedEncryptorConfiguration configuration) 77typeof(KeyedHashAlgorithm).AssertIsAssignableFrom(configuration.ValidationAlgorithmType); 89return AlgorithmActivator.CreateFactory<KeyedHashAlgorithm>(configuration.ValidationAlgorithmType);
Managed\HashAlgorithmExtensions.cs (1)
19public static HashAlgorithmType GetHashAlgorithmType(this KeyedHashAlgorithm type) => type switch
Managed\ManagedAuthenticatedEncryptor.cs (10)
45private readonly Func<KeyedHashAlgorithm> _validationAlgorithmFactory; 46private readonly Func<byte[], KeyedHashAlgorithm>? _keyedValidationAlgorithmFactory; 51public ManagedAuthenticatedEncryptor(Secret keyDerivationKey, Func<SymmetricAlgorithm> symmetricAlgorithmFactory, int symmetricAlgorithmKeySizeInBytes, Func<KeyedHashAlgorithm> validationAlgorithmFactory, IManagedGenRandom? genRandom = null, Func<byte[], KeyedHashAlgorithm>? keyedValidationAlgorithmFactory = null) 65using (var validationAlgorithm = validationAlgorithmFactory()) 269using var validationAlgorithm = CreateValidationAlgorithm(validationSubkeyArray ?? validationSubkey.ToArray()); 433using var validationAlgorithm = CreateValidationAlgorithm(validationSubkeyArray ?? validationSubkey.ToArray()); 657using (var hashAlg = CreateValidationAlgorithm(new ArraySegment<byte>(tempKeys, _symmetricAlgorithmSubkeyLengthInBytes, _validationAlgorithmSubkeyLengthInBytes).AsStandaloneArray())) 682private KeyedHashAlgorithm CreateValidationAlgorithm(byte[]? key = null) 691var retVal = _validationAlgorithmFactory();
mscorlib (1)
parent\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) => 20CryptoConfig.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)
342public bool CheckSignature(KeyedHashAlgorithm macAlg) 491public void ComputeSignature(KeyedHashAlgorithm macAlg) 852bool isKeyedHashAlgorithm = hash is KeyedHashAlgorithm; 1109private 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; 548private void GetSigningAlgorithm(SecurityKey signatureKey, string algorithmName, out KeyedHashAlgorithm symmetricAlgorithm, out AsymmetricAlgorithm asymmetricAlgorithm) 613KeyedHashAlgorithm keyedHashAlgorithm = null;
System.ServiceModel.Primitives.Tests (1)
IdentityModel\SymmetricSecurityKeyTest.cs (1)
66public override KeyedHashAlgorithm GetKeyedHashAlgorithm(string algorithm)