46.6.1 Control A

Name: CTRLA
Offset: 0x00
Reset: 0x00000000
Property: PAC Write-Protection, Enable-protected

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
     CTYPE4CTYPE3CTYPE2CTYPE1 
Access R/WR/WR/WR/W 
Reset 0000 
Bit 15141312111098 
  XORKEYKEYGENLODSTARTMODECIPHERKEYSIZE[1:0] 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 0000000 
Bit 76543210 
 CFBS[2:0]AESMODE[2:0]ENABLESWRST 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 

Bits 16, 17, 18, 19 – CTYPEx Counter Measure Type x, x = 1..4

ValueDescription
0 Countermeasure x is disabled
1 Countermeasure x is enabled

Bit 14 – XORKEY XOR Key Operation

ValueDescription
0 No effect
1 The user keyword gets XORed with the previous keyword register content.

Bit 13 – KEYGEN Last Key Generation

ValueDescription
0 No effect
1 Start Computation of the last NK words of the expanded key

Bit 12 – LOD Last Output Data Mode

ValueDescription
0 No effect
1 Start encryption in Last Output Data mode

Bit 11 – STARTMODE Start Mode Select

ValueNameDescription
0 MANUAL Start Encryption / Decryption in Manual mode
1 AUTO Start Encryption / Decryption in Auto mode

Bit 10 – CIPHER Cipher Mode Select

ValueDescription
0 Decryption
1 Encryption

Bits 9:8 – KEYSIZE[1:0] Encryption Key Size

ValueNameDescription
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

ValueNameDescription
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

ValueNameDescription
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

ValueDescription
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.

ValueDescription
0 There is no reset operation ongoing
1 The reset operation is ongoing