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 ci: Fix issues for build stage 2022-02-02 15:03:48 +05:30
dynamic mbedtls: fix ssl server crash when enable mbedtls dynamic buffer 2022-06-08 14:27:41 +08:00
esp32 global: fix sign-compare warnings 2021-01-12 14:05:08 +08:00
esp32c3 mbedtls: merge changes from C3 2020-12-29 10:56:13 +08:00
esp32h2 esp32h2: enable more components to support esp32h2 2021-07-01 19:53:11 +08:00
esp32s2 esp32c3/Digital Signature: mbedtls integration through ESP-TLS 2021-01-22 11:54:16 +05:30
esp32s3 mbedtls: Acquire lock before enabling MPI (RSA) hardware 2022-06-23 16:32:26 +05:30
esp_ds esp_ds: ignore releasing mutex if not called from same task 2023-05-19 08:32:00 +05:30
include mbedtls: Update config options as per v2.28.2 release 2023-01-04 15:36:24 +05:30
md mbedtls: Add CONFIG_MBEDTLS_ROM_MD5 to use ROM MD5 in mbedTLS 2021-04-14 06:42:13 +00:00
sha fix(sha): DMA mode iteration calculation issue for certain data lengths 2023-08-02 10:18:12 +05:30
esp_bignum.c mbedtls: Moved mbedtls_mpi_mul_int to port layer 2022-02-02 10:56:48 +05:30
esp_hardware.c Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
esp_mem.c Exception handlers for LoadStoreError and LoadStoreAlignmentError 2020-02-26 20:21:59 +08:00
esp_timing.c Add DTLS support to libcoap using MbedTLS 2019-08-06 10:37:40 +05:30
mbedtls_debug.c Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
net_sockets.c Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00