EasyManuals Logo

ST STM32L4 5 Series User Manual

ST STM32L4 5 Series
1830 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #833 background imageLoading...
Page #833 background image
DocID024597 Rev 5 833/1830
RM0351 Advanced encryption standard hardware accelerator (AES)
852
Figure 200. 128-bit block construction according to the data type (continued)
28.9 Operating modes
28.9.1 Mode 1: encryption
1. Disable the AES by resetting EN bit in the AES_CR register.
2. Configure the mode 1 by programming MODE[1:0] = 00 in the AES_CR register and
select which type of chaining mode needs to be performed by programming the
CHMOD[2:0] bits.
3. Select key length 128-bits or 256-bits via KEYSIZE bits configuration in AES_CR
register.
4. Write the AES_KEYRx registers (128-bit or 256-bit with encryption key) and the
AES_IVRx registers if CTR, CBC or GCM mode is selected. For ECB mode, the
AES_IVRx register is not used.
5. Enable the AES by setting the EN bit in the AES_CR register.
6. Write the AES_DINR register 4 times to input the plain text (MSB first) as shown in
Figure 201: Mode 1: encryption with 128-bit key length.
7. Wait until the CCF flag is set in the AES_SR register.
8. Read the AES_DOUTR register 4 times to get the cipher text (MSB first) as shown in
Figure 201: Mode 1: encryption with 128-bit key length.
9. Repeat steps 6,7,8 to process all the blocks with the same encryption key.
069
$(6B',15RU$(6B'2875
'$7$7<3(E%LWVZDSSLQJ
06%
:25' :25' :25'
/6%
:25'
ELW

ELW

ELW

ELW

ELW

ELW

ELW

ELW

ELW

ELW

ELW

ELW

ELW

ELW

ELW

ELW

ELW

ELW

ELW
ELW
06% /6%
$(6SURFHVVRULQSXWRU$(6SURFHVVRURXWSWXW

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32L4 5 Series and is the answer not in the manual?

ST STM32L4 5 Series Specifications

General IconGeneral
BrandST
ModelSTM32L4 5 Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals