46.6.1 Control A
| Name: | CTRLA |
| Offset: | 0x00 |
| Reset: | 0x00000000 |
| Property: | PAC Write-Protection, Enable-protected |
| Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
| Access | |||||||||
| Reset |
| Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
| CTYPE4 | CTYPE3 | CTYPE2 | CTYPE1 | ||||||
| Access | R/W | R/W | R/W | R/W | |||||
| Reset | 0 | 0 | 0 | 0 |
| Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
| XORKEY | KEYGEN | LOD | STARTMODE | CIPHER | KEYSIZE[1:0] | ||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | ||
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| CFBS[2:0] | AESMODE[2:0] | ENABLE | SWRST | ||||||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
| Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |
Bits 16, 17, 18, 19 – CTYPEx Counter Measure Type x, x = 1..4
| Value | Description |
|---|---|
| 0 | Countermeasure x is disabled |
| 1 | Countermeasure x is enabled |
Bit 14 – XORKEY XOR Key Operation
| Value | Description |
|---|---|
| 0 | No effect |
| 1 | The user keyword gets XORed with the previous keyword register content. |
Bit 13 – KEYGEN Last Key Generation
| Value | Description |
|---|---|
| 0 | No effect |
| 1 | Start Computation of the last NK words of the expanded key |
Bit 12 – LOD Last Output Data Mode
| Value | Description |
|---|---|
| 0 | No effect |
| 1 | Start encryption in Last Output Data mode |
Bit 11 – STARTMODE Start Mode Select
| Value | Name | Description |
|---|---|---|
| 0 | MANUAL | Start Encryption / Decryption in Manual mode |
| 1 | AUTO | Start Encryption / Decryption in Auto mode |
Bit 10 – CIPHER Cipher Mode Select
| Value | Description |
|---|---|
| 0 | Decryption |
| 1 | Encryption |
Bits 9:8 – KEYSIZE[1:0] Encryption Key Size
| Value | Name | Description |
|---|---|---|
| 0 | 128BIT | 128-bit Key for Encryption / Decryption |
| 1 | 192BIT | 192-bit Key for Encryption / Decryption |
| 2 | 256BIT | 256-bit Key for Encryption / Decryption |
| 3 | Reserved | Reserved |
Bits 7:5 – CFBS[2:0] Cipher Feedback Block Size
| Value | Name | Description |
|---|---|---|
| 0 | 128BIT | 128-bit Input data block for Encryption/Decryption in Cipher Feedback mode |
| 1 | 64BIT | 64-bit Input data block for Encryption/Decryption in Cipher Feedback mode |
| 2 | 32BIT | 32-bit Input data block for Encryption/Decryption in Cipher Feedback mode |
| 3 | 16BIT | 16-bit Input data block for Encryption/Decryption in Cipher Feedback mode |
| 4 | 8BIT | 8-bit Input data block for Encryption/Decryption in Cipher Feedback mode |
| 5-7 | Reserved | Reserved |
Bits 4:2 – AESMODE[2:0] AES Modes of Operation
| Value | Name | Description |
|---|---|---|
| 0 | ECB | Electronic code book mode |
| 1 | CBC | Cipher block chaining mode |
| 2 | OFB | Output feedback mode |
| 3 | CFB | Cipher feedback mode |
| 4 | Counter | Counter mode |
| 5 | CCM | CCM mode |
| 6 | GCM | Galois counter mode |
| 7 | Reserved | Reserved |
Bit 1 – ENABLE Enable
| Value | Description |
|---|---|
| 0 | The peripheral is disabled |
| 1 | The peripheral is enabled |
Bit 0 – SWRST Software Reset
Writing a '0' to this bit has no effect.
Writing a '1' to this bit resets all registers in the AES module to their initial state, and the module will be disabled.
Writing a '1' to SWRST will always take precedence,
meaning that all other writes in the same write operation will be discarded.
| Value | Description |
|---|---|
| 0 | There is no reset operation ongoing |
| 1 | The reset operation is ongoing |
