MacAlgorithmProvider.OpenAlgorithm(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a MacAlgorithmProvider object and opens the specified algorithm for use.
public:
static MacAlgorithmProvider ^ OpenAlgorithm(Platform::String ^ algorithm);
static MacAlgorithmProvider OpenAlgorithm(winrt::hstring const& algorithm);
public static MacAlgorithmProvider OpenAlgorithm(string algorithm);
function openAlgorithm(algorithm)
Public Shared Function OpenAlgorithm (algorithm As String) As MacAlgorithmProvider
Parameters
- algorithm
-
String
Platform::String
winrt::hstring
Algorithm name.
Returns
Represents a provider that implements MAC algorithms.
Remarks
The following algorithm names are supported for use in the MacAlgorithmProvider class:
- MacAlgorithmNames.AesCmac
- MacAlgorithmNames.HmacMd5
- MacAlgorithmNames.HmacSha1
- MacAlgorithmNames.HmacSha256
- MacAlgorithmNames.HmacSha384
- MacAlgorithmNames.HmacSha512