MacAlgorithmProvider.CreateKey(IBuffer) Method

Definition

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

public:
 virtual CryptographicKey ^ CreateKey(IBuffer ^ keyMaterial) = CreateKey;
CryptographicKey CreateKey(IBuffer const& keyMaterial);
public CryptographicKey CreateKey(IBuffer keyMaterial);
function createKey(keyMaterial)
Public Function CreateKey (keyMaterial As IBuffer) As CryptographicKey

Parameters

keyMaterial
IBuffer

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

Returns

Symmetric key.

Applies to