esp-idf/components/mbedtls/port
Mahavir Jain 5605189398
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:28:43 +05:30
..
aes fix(aes): correct the linking of the DMA descriptors 2023-09-06 08:28:43 +05:30
crypto_shared_gdma mbedtls: updated to use default gdma psram alignment 2023-02-28 10:42:22 +08:00
dynamic fix(mbedtls): Build issue in dynamic buffer feature 2023-07-03 04:01:19 +00:00
ecc mbedtls/ecp: Fix incorrect ECP parameter value 2023-01-18 14:24:57 +05:30
ecdsa ecdsa: Support multiple ECDSA keys 2023-04-30 11:47:35 +05:30
esp32 esp32/mpi: Added alternate workaround for MPI data corruption issue 2023-02-21 18:43:54 +05:30
esp32c3 mbedtls: Update licenses of files updated in mbedtls-3.1 update 2022-03-04 05:18:58 +00:00
esp32c6 mbedtls: enable RSA support for esp32c6 2023-02-03 11:46:42 +05:30
esp32h2 mbedtls: enable RSA support for esp32h2 2023-03-01 14:18:57 +05:30
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:34 +05:30
include feat(mbedtls): support ecp fixed-point multiplication configurable 2023-08-11 16:40:38 +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:40 +00:00
esp_bignum.c fix(mbedtls): Fix incorrect assert for H/W MPI operations 2023-07-13 16:24:44 +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: MBEDTLS_PRIVATE & MBEDTLS_ALLOW_PRIVATE_ACCESS-related cleanup 2022-09-29 10:13:14 +05:30
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 lwip: Support IPv6 only mode 2023-02-27 08:53:34 +01:00