Show / Hide Table of Contents

KeyLength Method

KeyLength(CmacBlockCipherAlgorithm)

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

C#
public static int KeyLength(this CmacBlockCipherAlgorithm algorithm)

Parameters

Type Name Description
CmacBlockCipherAlgorithm algorithm

The algorithm name to check.

Returns

int

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

In this article
Back to top Generated by DocFX