Figure 172. Ecb Encryption Mode; Aes Chaining Algorithms - ST STM32L4x6 Reference Manual

Table of Contents

Advertisement

Advanced encryption standard hardware accelerator (AES)
to switch the AES to mode 3 (decryption mode), there is no need to write the AES_KEYRx
registers if their content corresponds to the derivation key (previously computed by mode 2).
In mode 4 (key derivation + decryption), the AES_KEYRx registers contain only the
encryption key. The derivation key is calculated internally without any write to these
registers.
25.5

AES chaining algorithms

Five algorithms are supported by the AES hardware and can be selected through the
CHMOD[2:0] bits in the AES_CR register when the AES is disabled (bit EN = 0):
Electronic codebook (ECB)
Cipher block chaining (CBC)
Counter mode (CTR)
Galois counter mode (GCM) and Galois message authentication code mode (GMAC)
Cipher message authentication code mode (CMAC)
25.5.1
Electronic codebook (ECB)
This is the default mode. This mode does not use the AES_IVR register. There are no
chaining operations. The message is divided into blocks and each block is encrypted
separately
Figure 172
encryption and decryption respectively.
718/1693
.
and
Figure 173
describe the principle of the electronic codebook algorithm for

Figure 172. ECB encryption mode

DocID024597 Rev 3
RM0351

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents

Save PDF