46.5.3.1.5 Generating The Tag
Follow these steps to generate the tag:
- Configure CTRLA:
- Set CTRLA.ENABLE to 0.
- Set CTRLA.AESMODE as CTR.
- Set CTRLA.ENABLE to ‘1’.
- Load J0 value to the INITVECTV register.
- Load GHASH value to the INDATA register.
- Set CTRLB.NEWMSG and CTRLB.START to start the counter mode operation.
- Wait for INTFLAG.ENCCMP to be set.
- AES Hardware generates the GCM tag output in the INDATA register.
