esp-idf/components/mbedtls/port
Mahavir Jain aba35cd526
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:00 +05:30
..
aes fix(aes): correct the linking of the DMA descriptors 2023-09-06 08:30:00 +05:30
crypto_shared_gdma ci: Fix issues for build stage 2022-01-25 10:51:27 +05:30
dynamic mbedtls: replace low-level sha apis with md apis in esp_ssl_tls 2023-04-24 12:03:55 +05:30
ecc mbedtls/ecp: Fix incorrect ECP parameter value 2023-02-08 21:35:49 +05:30
esp32 esp32/mpi: Added alternate workaround for MPI data corruption issue 2023-03-06 06:43:17 +00:00
esp32c3 mbedtls: Update licenses of files updated in mbedtls-3.1 update 2022-03-04 05:18:58 +00:00
esp32h2 mbedtls: Update licenses of files updated in mbedtls-3.1 update 2022-03-04 05:18:58 +00:00
esp32s2 mbedtls: Update licenses of files updated in mbedtls-3.1 update 2022-03-04 05:18:58 +00:00
esp32s3 mbedtls: Acquire lock before enabling MPI (RSA) hardware 2022-06-21 10:48:17 +05:30
esp_ds esp_ds: ignore releasing mutex if not called from same task 2023-05-19 08:31:45 +05:30
include feat(mbedtls): support ecp fixed-point multiplication configurable 2023-08-09 16:54:28 +08:00
md mbedtls-3 update: 2022-03-03 01:37:10 +05:30
sha fix(sha): DMA mode iteration calculation issue for certain data lengths 2023-08-02 04:48:48 +00:00
esp_bignum.c fix(mbedtls): Fix incorrect assert for H/W MPI operations 2023-07-13 16:24:57 +05:30
esp_hardware.c esp_hw_support/esp_system: Re-evaluate header inclusions and include directories 2022-03-07 11:18:08 +05:30
esp_mem.c mbedtls: Update licenses of files updated in mbedtls-3.1 update 2022-03-04 05:18:58 +00:00
esp_timing.c mbedtls: Update licenses of files updated in mbedtls-3.1 update 2022-03-04 05:18:58 +00:00
mbedtls_debug.c mbedtls: Update licenses of files updated in mbedtls-3.1 update 2022-03-04 05:18:58 +00:00
net_sockets.c ci: Fix pre-check stage failing tests 2022-03-03 01:37:10 +05:30