9.4.1.2.1 Subsequence: Initialize CCM AES Core Mode
The CCM mode initialization is as follows:
- Define the width of the length field and the length of the authentication field by programming the CCM_L and CCM_M bit fields in the AES_CTRL register at offset 0x050.
- Enable counter mode by setting the CTR bit in the AES_CTRL register.
- Load the authentication data length in the AUTH field of the AES Authentication Data Length (AES_AUTH_LENGTH) register at offset 0x05C.
- Select the IV counter by programming the CTR_WIDTH field in the AES_CTRL register.
- Load the AES Initialization Vector Input n (AES_IV_IN_n) registers at offset 0x040 to 0x04C.