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 #834 background imageLoading...
Page #834 background image
Advanced encryption standard hardware accelerator (AES) RM0351
834/1830 DocID024597 Rev 5
Figure 201. Mode 1: encryption with 128-bit key length
28.9.2 Mode 2: key derivation
1. Disable the AES by resetting the EN bit in the AES_CR register.
2. Configure mode 2 by programming MODE[1:0] = 01 in the AES_CR register.
Note: CHMOD[2:0] bits are not significant in this case because this key derivation mode is
independent from the chaining algorithm selected.
3. Select key length 128-bit or 256-bit via KEYSIZE bits configuration in AES_CR register.
4. Write the AES_KEYRx registers with the encryption key to obtain the derivative key. A
write to the AES_IVRx has no effect.
5. Enable the AES by setting the EN bit in the AES_CR register.
6. Wait until the CCF flag is set in the AES_SR register.
7. The derivation key is put automatically into the AES_KEYRx registers. Read the
AES_KEYRx registers to obtain the decryption key if needed. The AES is disabled by
hardware. To restart a derivation key calculation, repeat steps 3, 4, 5 and 6.
Figure 202. Mode 2: key derivation with 128-bit key length
069
:5
37
:5
37
:5
37
:5
37
:DLWXQWLOIODJ&&) 
5'
&7
5'
&7
5'
&7
5'
&7
,QSXWSKDVH
ZULWHRSHUDWLRQVLQWR
$(6B',1>@
&RPSXWDWLRQSKDVH
2XWSXWSKDVH
UHDGRSHUDWLRQVRI
$(6B'287>@
37 SODLQWH[W ZRUGV37«37
&7 F\SKHUWH[W ZRUGV&7«&7
06% /6% 06% /6%
069
:5
(.
:5
(.
:5
(.
:5
(.
:DLWXQWLOIODJ&&) 
5'
'.
5'
'.
5'
'.
5'
'.
,QSXWSKDVH
ZULWHRSHUDWLRQVLQWR
$(6B.(<5[>@
&RPSXWDWLRQSKDVH
2XWSXWSKDVHRSWLRQDO
UHDGRSHUDWLRQVRI
$(6B.(<5[>@
(. HQFU\SWLRQNH\ ZRUGV(.«(.
'. GHFU\SWLRQNH\ ZRUGV'.«'.
06% /6% 06% /6%
(1 LQWR$(6B&5
ELWGHULYDWLRQNH\
VWRUHGLQWR$(6B.(<5[

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