KeyedHashAlgorithm::Create Method (String)
Creates an instance of the specified implementation of a keyed hash algorithm.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- algName
- Type: System::String
The keyed hash algorithm implementation to use. The following table shows the valid values for the algName parameter and the algorithms they map to.
Parameter value
Implements
System.Security.Cryptography.HMAC
System.Security.Cryptography.KeyedHashAlgorithm
HMACMD5
System.Security.Cryptography.HMACMD5
HMACRIPEMD160
System.Security.Cryptography.HMACRIPEMD160
HMACSHA1
System.Security.Cryptography.HMACSHA1
HMACSHA256
System.Security.Cryptography.HMACSHA256
HMACSHA384
System.Security.Cryptography.HMACSHA384
HMACSHA512
System.Security.Cryptography.HMACSHA512
MACTripleDES
System.Security.Cryptography.MACTripleDES
Return Value
Type: System.Security.Cryptography::KeyedHashAlgorithmA new instance of the specified keyed hash algorithm.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.