Download Print this page

Espressif ESP32 Technical Reference Manual page 586

Hide thumbs Also See for ESP32:

Advertisement

22 AES Accelerator (AES)
22.3.4 Encryption and Decryption Operations
Single Operation
1. Initialize AES_MODE_REG, AES_KEY_n_REG, AES_TEXT_m_REG and AES_ENDIAN_REG.
2. Write 1 to AES_START_REG.
3. Wait until AES_IDLE_REG reads 1.
4. Read results from AES_TEXT_m_REG.
Consecutive Operations
Every time an operation is completed, only AES_TEXT_m_REG is modified by the AES Accelerator. Initialization
can, therefore, be simplified in a series of consecutive operations.
1. Update contents of AES_MODE_REG, AES_KEY_n_REG and AES_ENDIAN_REG, if required.
2. Load AES_TEXT_m_REG.
3. Write 1 to AES_START_REG.
4. Wait until AES_IDLE_REG reads 1.
5. Read results from AES_TEXT_m_REG.
22.3.5 Speed
The AES Accelerator requires 11 to 15 clock cycles to encrypt a message block, and 21 or 22 clock cycles to
decrypt a message block.
22.4 Register Summary
Name
Configuration registers
AES_MODE_REG
AES_ENDIAN_REG
Key registers
AES_KEY_0_REG
AES_KEY_1_REG
AES_KEY_2_REG
AES_KEY_3_REG
AES_KEY_4_REG
AES_KEY_5_REG
AES_KEY_6_REG
AES_KEY_7_REG
Encrypted/decrypted data registers
AES_TEXT_0_REG
AES_TEXT_1_REG
AES_TEXT_2_REG
AES_TEXT_3_REG
Control/status registers
AES_START_REG
Espressif Systems
Description
Mode of operation of the AES Accelerator
Endianness configuration register
AES key material register 0
AES key material register 1
AES key material register 2
AES key material register 3
AES key material register 4
AES key material register 5
AES key material register 6
AES key material register 7
AES encrypted/decrypted data register 0
AES encrypted/decrypted data register 1
AES encrypted/decrypted data register 2
AES encrypted/decrypted data register 3
AES operation start control register
586
Submit Documentation Feedback
Address
Access
0x3FF01008
R/W
0x3FF01040
R/W
0x3FF01010
R/W
0x3FF01014
R/W
0x3FF01018
R/W
0x3FF0101C
R/W
0x3FF01020
R/W
0x3FF01024
R/W
0x3FF01028
R/W
0x3FF0102C
R/W
0x3FF01030
R/W
0x3FF01034
R/W
0x3FF01038
R/W
0x3FF0103C
R/W
0x3FF01000
WO
ESP32 TRM (Version 5.2)

Advertisement

loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel