59.5.2 AESB Mode Register

Name: AESB_MR
Offset: 0x04
Reset: 0x00000000
Property: Read/Write

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
 CKEY[3:0]     
Access WWWW 
Reset 000 
Bit 15141312111098 
 LODOPMOD[2:0]  SMOD[1:0] 
Access R/WR/WR/WR/WR/WR/W 
Reset 000000 
Bit 76543210 
 PROCDLY[3:0]DUALBUFFAAHB CIPHER 
Access R/WR/WR/WR/WR/WR/WR/W 
Reset 0000000 

Bits 23:20 – CKEY[3:0] Key

ValueNameDescription
0xE PASSWD

Must be written with 0xE the first time that AESB_MR is programmed. For subsequent programming of the AESB_MR, any value can be written, including that of 0xE.

Always reads as 0.

Bit 15 – LOD Last Output Data Mode

ValueDescription
0

No effect.

After each end of encryption/decryption, the output data will be available either on the output data registers (Manual and Auto modes).

In Manual and Auto modes, AESB_ISR.DATRDY is cleared when at least one of the Output Data registers is read.

1

AESB_ISR.DATRDY is cleared when at least one of the Input Data registers is written.

No additional Output Data register reads are necessary between consecutive encryptions/decryptions (see Last Output Data Mode).

Bits 14:12 – OPMOD[2:0] Operating Mode

Values which are not listed in the table must be considered as “reserved”.

For CBC-MAC operating mode, configure OPMOD to 0x1 (CBC) and set LOD to 1.

If OPMOD is set to 4 and AAHB = 1, there is no compliance with the standard CTR mode of operation.

ValueNameDescription
0 ECB

Electronic Code Book mode

1 CBC

Cipher Block Chaining mode

2

Reserved

3

Reserved

4 CTR

Counter mode (16-bit internal counter)

Bits 9:8 – SMOD[1:0] Start Mode

ValueNameDescription
0 MANUAL_START

Manual mode

1 AUTO_START

Auto mode

2 IDATAR0_START

AESB_IDATAR0 access only Auto mode

Bits 7:4 – PROCDLY[3:0] Processing Delay

Processing Time = 12 × (PROCDLY + 1)

The Processing Time represents the number of clock cycles that the AESB needs in order to perform one encryption/decryption .

Note: The best performance is achieved with PROCDLY = 0.

Bit 3 – DUALBUFF Dual Input Buffer

ValueNameDescription
0 INACTIVE

AESB_IDATARx cannot be written during processing of previous block.

1 ACTIVE

AESB_IDATARx can be written during processing of previous block when SMOD = 2. It speeds up the overall runtime of large files.

Bit 2 – AAHB Automatic Bridge Mode

ValueDescription
0

Automatic Bridge mode disabled.

1

Automatic Bridge mode enabled.

Bit 0 – CIPHER Processing Mode

ValueDescription
0

Decrypts data.

1

Encrypts data.