37.8.1 Control A

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

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
     CTYPE[3:0] 
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 19:16 – CTYPE[3:0] Countermeasure type

ValueNameDescription
XXX0CTYPE1 disabledCountermeasure1 disabled
XXX1CTYPE1 enabledCountermeasure1 enabled
XX0XCTYPE2 disabledCountermeasure2 disabled
XX1XCTYPE2 enabledCountermeasure2 enabled
X0XXCTYPE3 disabledCountermeasure3 disabled
X1XXCTYPE3 enabledCountermeasure3 enabled
0XXXCTYPE4 disabledCountermeasure4 disabled
1XXXCTYPE4 enabledCountermeasure4 enabled

Bit 14 – XORKEY XOR Key

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

Bit 13 – KEYGEN Key Generation

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

Bit 12 – LOD Last Output Data Mode

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

Bit 11 – STARTMODE Start Mode Select

ValueNameDescription
0Manual ModeStart Encryption / Decryption in Manual mode
1Auto ModeStart Encryption / Decryption in Auto mode

Bit 10 – CIPHER Encryption/ Decryption

ValueDescription
0Decryption
1Encryption

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

ValueNameDescription
0128-bit Key128-bit Key for Encryption / Decryption
1192-bit Key192-bit Key for Encryption / Decryption
2256-bit Key256-bit Key for Encryption / Decryption
3ReservedReserved

Bits 7:5 – CFBS[2:0] Cipher Feedback Block Size

ValueNameDescription
0128-bit data block128-bit Input data block for Encryption/Decryption in Cipher Feedback mode
164-bit data block64-bit Input data block for Encryption/Decryption in Cipher Feedback mode
232-bit data block32-bit Input data block for Encryption/Decryption in Cipher Feedback mode
316-bit data block16-bit Input data block for Encryption/Decryption in Cipher Feedback mode
48-bit data block8-bit Input data block for Encryption/Decryption in Cipher Feedback mode
5-7ReservedReserved

Bits 4:2 – AESMODE[2:0] AES Modes of Operation

ValueNameDescription
0ECBElectronic code book mode
1CBCCipher block chaining mode
2OFBOutput feedback mode
3CFBCipher feedback mode
4CounterCounter mode
5CCMCCM mode
6GCMGalois counter mode
7ReservedReserved

Bit 1 – ENABLE Enable

ValueDescription
0The peripheral is disabled
1The 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
0There is no reset operation ongoing
1The reset operation is ongoing