Show / Hide Table of Contents

CmacInit Method

CmacInit(ReadOnlySpan<byte>)

Initialize the object to perform CMAC with the given key.

C#
void CmacInit(ReadOnlySpan<byte> keyData)

Parameters

Type Name Description
ReadOnlySpan<byte> keyData

The key to be used in the CMAC operations.

Remarks

The key length must match the algorithm specified at instantiation. To know the required key length, in bytes, use the CmacBlockCipherAlgorithm extension KeyLength.

In this article
Back to top Generated by DocFX