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 |
---|---|---|
System.ReadOnlySpan<System.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
.