esp-idf/components/mbedtls/port
Mahavir Jain 4636443b49
fix(aes): correct the linking of the DMA descriptors
For certain data lengths, the last input descriptor was not getting appended
correctly and hence the EOF flag in the DMA descriptor link list was
set at incorrect location. This was resulting in the peripheral being
stalled expecting more data and eventually the code used to timeout
waiting for the AES completion interrupt.

Required configs for this issue:

CONFIG_MBEDTLS_HARDWARE_AES
CONFIG_SOC_AES_SUPPORT_DMA

This observation is similar to the issue reported in:
https://github.com/espressif/esp-idf/issues/10647

To recreate this issue, start the AES-GCM DMA operation with data length
12280 bytes and this should stall the operation forever.

In this fix, we are tracing the entire descriptor list and then appending the
extra bytes descriptor at correct position (as the last node).
2023-09-06 08:30:37 +05:30
..
aes fix(aes): correct the linking of the DMA descriptors 2023-09-06 08:30:37 +05:30
crypto_shared_gdma
dynamic
esp32
esp32c3
esp32h2
esp32s2
esp32s3
esp_ds esp_ds: ignore releasing mutex if not called from same task 2023-05-19 08:32:00 +05:30
include
md
sha fix(sha): DMA mode iteration calculation issue for certain data lengths 2023-08-02 10:18:12 +05:30
esp_bignum.c
esp_hardware.c
esp_mem.c
esp_timing.c
mbedtls_debug.c
net_sockets.c