56.4.3.2.2 If AES_MR.LOD = 1

This mode is optimized to process AES CBC-MAC operating mode.

The user must first wait for the DMA buffer transfer complete flag, then for the flag DATRDY to rise to ensure that the encryption/decryption is completed (see the figure below).

In this case, no receive buffers are required.

The output data are only available on AES_ODATARx.

Figure 56-4. DMA Transfer with AES_MR.LOD = 1

The table below summarizes the different cases.

Table 56-1. Last Output Data Mode Behavior versus Start Modes
SequenceManual and Auto ModesDMA Transfer
AES_MR.LOD = 0AES_MR.LOD = 1AES_MR.LOD = 0AES_MR.LOD = 1
DATRDY Flag Clearing Condition(1)At least one AES_ODATAR must be readAt least one AES_IDATAR must be writtenNot usedManaged by the DMA
End of Encryption/Decryption NotificationDATRDYDATRDY2 DMA Buffer transfer complete flags (channel m and channel n)DMA buffer transfer complete flag, then AES DATRDY flag
Encrypted/Decrypted Data Result LocationIn AES_ODATARxIn AES_ODATARxAt the address specified in the Channel Buffer Transfer DescriptorIn AES_ODATARx
Note:
  1. Depending on the mode, there are other ways of clearing the DATRDY flag. See AES Interrupt Status Register.
Warning: In DMA mode, reading AES_ODATARx before the last data transfer may lead to unpredictable results.