Table of Contents

Class CmacBlockCipherAlgorithmExtensions

Namespace
Yubico.Core.Cryptography
Assembly
Yubico.Core.dll

Extension methods to operate on the CmacBlockCipherAlgorithm enum.

public static class CmacBlockCipherAlgorithmExtensions
Inheritance
object
CmacBlockCipherAlgorithmExtensions

Methods

KeyLength(CmacBlockCipherAlgorithm)

Returns the length, in bytes, of the key to be used in the operations given the specified underlying block cipher algorithm.

public static int KeyLength(this CmacBlockCipherAlgorithm algorithm)

Parameters

algorithm CmacBlockCipherAlgorithm

The algorithm name to check.

Returns

int

An int, the length, in bytes, of the key for the specified block cipher algorithm.

MacLength(CmacBlockCipherAlgorithm)

Returns the size, in bytes, of the resulting CMAC given the specified underlying block cipher algorithm.

public static int MacLength(this CmacBlockCipherAlgorithm algorithm)

Parameters

algorithm CmacBlockCipherAlgorithm

The algorithm name to check.

Returns

int

An int, the size, in bytes, of the CMAC result for the specified block cipher algorithm.