Figure 499. Cbc Encryption And Decryption Principle - ST STM32G4 Series Reference Manual

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32G4 Series:
Table of Contents

Advertisement

RM0440
Cipher block chaining (CBC) mode
Legend
In CBC mode the output of each block chains with the input of the following block. To make
each message unique, an initialization vector is used during the first block processing.
Note:
For decryption, a special key scheduling is required before processing the first block.

Figure 499. CBC encryption and decryption principle

Plaintext block 1
initialization
vector
key
Encrypt
Ciphertext block 1
Plaintext block 1
initialization
vector
key
input
output
key
scheduling
Ciphertext block 1
Encryption
Plaintext block 2
key
Encrypt
Ciphertext block 2
Decryption
Plaintext block 2
key
Decrypt
Decrypt
Ciphertext block 2
RM0440 Rev 1
AES hardware accelerator (AES)
Plaintext block 3
key
Encrypt
Ciphertext block 3
Plaintext block 3
key
Decrypt
Ciphertext block 3
MSv42141V1
1447/2083
1497

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

Table of Contents

Save PDF