esp-idf/components/mbedtls
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
..
esp_crt_bundle Tools: Fix flake8 version 5 warnings 2022-08-12 15:36:11 +02:00
mbedtls@727a037da6 feat(mbedtls): Update to release/v3.4.1 2023-08-17 17:31:10 +05:30
port fix(aes): correct the linking of the DMA descriptors 2023-09-06 08:30:00 +05:30
test ci(test): add SHA DMA mode test for large data in PSRAM 2023-08-02 04:48:48 +00:00
CMakeLists.txt Merge branch 'feature/update_mbedtls_v5.0' into 'release/v5.0' 2023-05-11 12:06:23 +08:00
Kconfig feat(mbedtls): support ecp fixed-point multiplication configurable 2023-08-09 16:54:28 +08:00