# AESCounter

## Syntax

      #include <twl/aes.h>

      #define AES_COUNTER_SIZE        16  // 128 bit

      typedef union AESCounter
      {
          u8  bytes[AES_COUNTER_SIZE];
          u32 words[AES_COUNTER_SIZE/sizeof(u32)];
      }
      AESCounter;

## Members

bytes | AES initial counter value, expressed as a byte array.
words | AES initial counter value, expressed as a word array. Note that the TWL is a little-endian machine.

## Description

Union for storing the initial counter value used to scramble the encryption results of CTR-mode AES.

## Revision History

2007/12/25 Initial version.

CONFIDENTIAL