Encrypted Tweak Generation
In the case of a new encryption/decryption, it is necessary to first encrypt the Tweak Value (i) with Key2. Here are the steps to follow to perform this step:
- Set AES_MR.OPMODE to ECB and AES_MR.CIPHER to ‘1’.
- Write the Key2.
- Fill AES_IDATARx.IDATA with the Tweak value (i) according to the SMOD configuration used. If Manual mode or Auto mode is used, the DATRDY bit indicates when the data have been processed and can be read in AES_ODATARx.