AESNonce

Syntax

#include <twl/aes.h>

#define AES_NONCE_SIZE          12  //  96 bit

typedef union AESNonce
{
    u8  bytes[AES_NONCE_SIZE];
    u32 words[AES_NONCE_SIZE/sizeof(u32)];
}
AESNonce;

Members

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

Description

Union for storing the nonce that is used for scramble the MAC and to generate initial counter values in CCM mode.

Revision History

2007/12/25 Initial version.


CONFIDENTIAL