# AESMacLength

## Syntax

      #include <twl/aes.h>

      typedef enum AESMacLength
      {
          AES_MAC_LENGTH_4  = 1,      // 4 byte
          AES_MAC_LENGTH_6  = 2,
          AES_MAC_LENGTH_8  = 3,
          AES_MAC_LENGTH_10 = 4,
          AES_MAC_LENGTH_12 = 5,
          AES_MAC_LENGTH_14 = 6,
          AES_MAC_LENGTH_16 = 7,      // 16 byte
          AES_MAX_LENGTH_MAX
      }
      AESMacLength;

## Members

AES_MAC_LENGTH_4 | Specifies 4 bytes as the length of the MAC.
AES_MAC_LENGTH_6 | Specifies 6 bytes as the length of the MAC.
AES_MAC_LENGTH_8 | Specifies 8 bytes as the length of the MAC.
AES_MAC_LENGTH_10 | Specifies 10 bytes as the length of the MAC.
AES_MAC_LENGTH_12 | Specifies 12 bytes as the length of the MAC.
AES_MAC_LENGTH_14 | Specifies 14 bytes as the length of the MAC.
AES_MAC_LENGTH_16 | Specifies 16 bytes as the length of the MAC.

## Description

Enumerated type for the byte length of the MAC (Message Authentication Code) used in CCM mode. We recommend using the longest length possible.

## Revision History

2007/12/25 Initial version.

CONFIDENTIAL