MacAlgorithmNames MacAlgorithmNames MacAlgorithmNames MacAlgorithmNames Class

Contains static properties that enable you to retrieve algorithm names that can be used in the OpenAlgorithm(System.String) method of the MacAlgorithmProvider class.

Syntax

Declaration

public static class MacAlgorithmNamespublic static class MacAlgorithmNamesPublic Static Class MacAlgorithmNames

Properties summary

Retrieves a string that contains "AES_CMAC".

Retrieves a string that contains "HMAC_MD5".

Retrieves a string that contains "HMAC_SHA1".

Retrieves a string that contains "HMAC_SHA256".

Retrieves a string that contains "HMAC_SHA384".

Retrieves a string that contains "HMAC_SHA512".

Properties

  • AesCmac
    AesCmac
    AesCmac
    AesCmac

    Retrieves a string that contains "AES_CMAC".

    public static string AesCmac { get; }public static string AesCmac { get; }Public Static ReadOnly Property AesCmac As string

    Property Value

    • string
      string
      string
      string

      String that contains "AesCmac".

    Remarks

    Use the string retrieved by this property to set the message authentication code (MAC) algorithm name when you call the OpenAlgorithm(System.String) method. The string represents an Advanced Encryption Standard (AES) encryption algorithm coupled with a cipher-based MAC block cipher algorithm. For more information, see RFC 4493.

  • HmacMd5
    HmacMd5
    HmacMd5
    HmacMd5

    Retrieves a string that contains "HMAC_MD5".

    public static string HmacMd5 { get; }public static string HmacMd5 { get; }Public Static ReadOnly Property HmacMd5 As string

    Property Value

    • string
      string
      string
      string

      String that contains "HMAC_MD5".

    Remarks

    Use the string retrieved by this property to set the message authentication code (MAC) algorithm name when you call the OpenAlgorithm(System.String) method. The string represents a hash-based message authentication code (HMAC) algorithm that uses the MD5 message digest algorithm to perform the hashing.

  • HmacSha1
    HmacSha1
    HmacSha1
    HmacSha1

    Retrieves a string that contains "HMAC_SHA1".

    public static string HmacSha1 { get; }public static string HmacSha1 { get; }Public Static ReadOnly Property HmacSha1 As string

    Property Value

    • string
      string
      string
      string

      String that contains "HMAC_SHA1".

    Remarks

    Use the string retrieved by this property to set the message authentication code (MAC) algorithm name when you call the OpenAlgorithm(System.String) method. The string represents a hash-based message authentication code (HMAC) algorithm that uses the SHA1 (Secure Hash Algorithm 1) message digest algorithm to perform the hashing.

  • HmacSha256
    HmacSha256
    HmacSha256
    HmacSha256

    Retrieves a string that contains "HMAC_SHA256".

    public static string HmacSha256 { get; }public static string HmacSha256 { get; }Public Static ReadOnly Property HmacSha256 As string

    Property Value

    • string
      string
      string
      string

      String that contains "HMAC_SHA256".

    Remarks

    Use the string retrieved by this property to set the message authentication code (MAC) algorithm name when you call the OpenAlgorithm(System.String) method. The string represents a hash-based message authentication code (HMAC) algorithm that uses the SHA256 (Secure Hash Algorithm) message digest algorithm to perform the hashing.

  • HmacSha384
    HmacSha384
    HmacSha384
    HmacSha384

    Retrieves a string that contains "HMAC_SHA384".

    public static string HmacSha384 { get; }public static string HmacSha384 { get; }Public Static ReadOnly Property HmacSha384 As string

    Property Value

    • string
      string
      string
      string

      String that contains "HMAC_SHA384".

    Remarks

    Use the string retrieved by this property to set the message authentication code (MAC) algorithm name when you call the OpenAlgorithm(System.String) method. The string represents a hash-based message authentication code (HMAC) algorithm that uses the SHA384 (Secure Hash Algorithm) message digest algorithm to perform the hashing.

  • HmacSha512
    HmacSha512
    HmacSha512
    HmacSha512

    Retrieves a string that contains "HMAC_SHA512".

    public static string HmacSha512 { get; }public static string HmacSha512 { get; }Public Static ReadOnly Property HmacSha512 As string

    Property Value

    • string
      string
      string
      string

      String that contains "HMAC_SHA512".

    Remarks

    Use the string retrieved by this property to set the message authentication code (MAC) algorithm name when you call the OpenAlgorithm(System.String) method. The string represents a hash-based message authentication code (HMAC) algorithm that uses the SHA512 (Secure Hash Algorithm) message digest algorithm to perform the hashing.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.Security.Cryptography.Core.dll