9.4.1.2.2 Subsequence: Initialize GCM AES Core Mode
The following steps to enable GCM mode is as follows:
- 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.