esp-idf/components/mbedtls/test_apps
Mahavir Jain f7a01d8f90
aes: fix DMA descriptor calculation for the alignment case
The number of the DMA descriptors allocated for certain length (e.g.,
8176) were not sufficient (off by 1 error). This used to result in the
dynamic memory corruption as the region was modified beyond the
allocated range.

This change fixes the DMA descriptor calculation part and allocates
sufficient DMA descriptors based on the data length alignment considerations.

Test has also been added to cover the specific scenario in the CI.

Closes https://github.com/espressif/esp-idf/issues/11310
2023-05-31 14:19:58 +05:30
..
main aes: fix DMA descriptor calculation for the alignment case 2023-05-31 14:19:58 +05:30
CMakeLists.txt
README.md
ecdsa_key_p192.pem
ecdsa_key_p256.pem
pytest_mbedtls_ut.py
sdkconfig.ci.aes_no_hw
sdkconfig.ci.default
sdkconfig.ci.ecdsa_sign
sdkconfig.ci.perf_esp32
sdkconfig.ci.psram
sdkconfig.ci.psram_all_ext
sdkconfig.ci.psram_esp32
sdkconfig.defaults
sdkconfig.defaults.esp32
sdkconfig.defaults.esp32c2
sdkconfig.defaults.esp32c3
sdkconfig.defaults.esp32s2
sdkconfig.defaults.esp32s3

README.md

Supported Targets ESP32 ESP32-C2 ESP32-C3 ESP32-C6 ESP32-H2 ESP32-S2 ESP32-S3