#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;
| 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. |
Union for storing the nonce that is used for scramble the MAC and to generate initial counter values in CCM mode.
2007/12/25 Initial version.
CONFIDENTIAL