EasyManuals Logo

ST STM32L4x6 User Manual

ST STM32L4x6
1693 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 #727 background imageLoading...
Page #727 background image
DocID024597 Rev 3 727/1693
RM0351 Advanced encryption standard hardware accelerator (AES)
751
Suspend mode during Payload phase: the user must respect the following steps:
Before interrupting the current message:
a) Read 4 times the AES_DOUTR register.
b) Make sure that busy flag is set to 0 (only in encryption mode, not necessary in
decryption mode).
c) Save AES_SUSPxR registers in the memory.
d) Save AES initialization vector registers AES_IVx in the memory.
Note: AES_IVx registers are modified during payload phase.
e) Disable AES processor by setting EN i n AES_CR to 0.
f) Save the current AES configuration in the memory (except AES initialization
vector values)
To resume:
g) Make sure that AES processor is disabled by reading EN in AES_CR.
h) Write back AES_SUSPxR registers into their corresponding suspend registers.
i) Write back AES_IVx registers into their AES initialization vectors.
j) Re-configure AES with the initial setting values in CR register and key registers.
k) Enable the AES processor by setting EN bit in AES_CR register.
Suspend mode in GMAC
GMAC is exactly the same as GCM algorithm except: only Header phase can be interrupt.
25.7 AES cipher message authentication code mode (CMAC)
CMAC allows to authenticate the plaintext, generating the corresponding TAG. The
message is composed only by the header phase and the tag phase. The CCM standard
(RFC 3610 Counter with CBC-MAC (CCM) dated September 2003) defines particular
encoding rules for the first authentication block (called B0 in the standard). In particular, the
first block includes flags, a nonce and the payload length expressed in bytes.
a) Make sure that the AES processor is disabled by clearing EN (AES_CR) and that
AES operating mode is different than mode 2 (key derivation) and mode 4 (key
derivation + decryption)
b) Select CMAC chaining mode by programming CHMOD bits[2:0] = 100 in
AES_CR.
c) Initialize key registers (128 / 256 bits) in AES_KEYRx and IV with zero values in
AES_IVRx
CMAC header phase:

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32L4x6 and is the answer not in the manual?

ST STM32L4x6 Specifications

General IconGeneral
BrandST
ModelSTM32L4x6
CategoryMicrocontrollers
LanguageEnglish

Related product manuals