MacAlgorithmProvider.CreateKey(IBuffer) MacAlgorithmProvider.CreateKey(IBuffer) MacAlgorithmProvider.CreateKey(IBuffer) MacAlgorithmProvider.CreateKey(IBuffer) MacAlgorithmProvider.CreateKey(IBuffer) Method

Definition

Creates a symmetric key that can be used to create the MAC value.

public : CryptographicKey CreateKey(IBuffer keyMaterial)
CryptographicKey CreateKey(IBuffer keyMaterial) const;
public CryptographicKey CreateKey(IBuffer keyMaterial)
Public Function CreateKey(keyMaterial As IBuffer) As CryptographicKey
var cryptographicKey = macAlgorithmProvider.createKey(keyMaterial);

Parameters

keyMaterial
IBuffer IBuffer IBuffer

Random data used to help generate the key. You can call the GenerateRandom method to create the random data.

Returns