esp-idf/components/mbedtls/test
Mahavir Jain 98c53234fc
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-06-07 09:20:20 +05:30
..
crts esp_crt_bundle: add additional unit tests 2020-12-08 10:11:31 +08:00
CMakeLists.txt esp_crt_bundle: add additional unit tests 2020-12-08 10:11:31 +08:00
component.mk Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
test_aes_gcm.c AES: refactor and add HAL layer 2020-12-10 09:04:47 +00:00
test_aes_perf.c AES/SHA: use GDMA driver instead of LL 2021-01-19 11:02:51 +08:00
test_aes_sha_parallel.c aes/sha: use a shared lazy allocated GDMA channel for AES and SHA 2021-03-09 09:23:05 +08:00
test_aes_sha_rsa.c esp32: move dport_access 2021-07-16 20:14:26 +08:00
test_aes.c aes: fix DMA descriptor calculation for the alignment case 2023-06-07 09:20:20 +05:30
test_apb_dport_access.c tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
test_apb_dport_access.h tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
test_ecp.c Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
test_esp_crt_bundle.c ci: Enable custom certificate bundle test for ESP32-S3 2022-06-23 16:32:26 +05:30
test_mbedtls_mpi.c temporarily disable hardware encryption for esp32s3 2021-01-28 21:05:51 +08:00
test_mbedtls_sha.c crypto: allocate all DMA descriptors to DMA capable memory. 2021-12-08 16:10:18 +08:00
test_mbedtls.c Whitespace: Automated whitespace fixes (large commit) 2020-11-11 07:36:35 +00:00
test_rsa.c ci: Enable custom certificate bundle test for ESP32-S3 2022-06-23 16:32:26 +05:30
test_sha_perf.c unit_test: Refactor all performance tests that rely on cache compensated timer 2020-12-22 18:56:24 +11:00
test_sha.c esp32s2: move crypto related functions 2021-07-16 20:14:26 +08:00