AESMac

Syntax

#include <twl/aes.h>

#define AES_MAC_MAX_SIZE        16  // 128 bit

typedef union AESMac
{
    u32 words[AES_MAC_MAX_SIZE/sizeof(u32)];
    u8 bytes[AES_MAC_MAX_SIZE];
}
AESMac;

Members

words An AES MAC expressed as a word array. Note that the TWL is a little-endian machine.
bytes An AES MAC expressed as a byte array.

Description

Union for storing the MAC (Message Authentication Code) used to verify messages in CCM-mode AES.

Revision History

2007/09/10 Initial version.


CONFIDENTIAL