Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 1.05 KB

macalgorithmprovider.md

File metadata and controls

33 lines (22 loc) · 1.05 KB
-api-id -api-type
T:Windows.Security.Cryptography.Core.MacAlgorithmProvider
winrt class

Windows.Security.Cryptography.Core.MacAlgorithmProvider

-description

Represents a message authentication code (MAC). A MAC uses symmetric key cryptography to prevent message tampering. For more information, see MACs, hashes, and signatures.

-remarks

You create a MacAlgorithmProvider object by calling the static OpenAlgorithm method and specifying one of the following algorithm names:

  • HMAC_MD5
  • HMAC_SHA1
  • HMAC_SHA256
  • HMAC_SHA384
  • HMAC_SHA512
  • AES_CMAC

-examples

[!code-csharpShowMacAlgProviderClass]

-see-also

HashAlgorithmProvider