esp-idf/components/mbedtls/port/aes
Mahavir Jain 18dbdbb643
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:22:10 +05:30
..
block AES: refactor and add HAL layer 2020-12-10 09:04:47 +00:00
dma aes: fix DMA descriptor calculation for the alignment case 2023-06-07 09:22:10 +05:30
esp_aes_common.c aes/sha: use a shared lazy allocated GDMA channel for AES and SHA 2021-03-10 09:40:35 +08:00
esp_aes_gcm.c mbedtls: fix esp_aes_crypt_ctr writing to null stream block 2023-01-25 15:40:45 +05:30
esp_aes_xts.c AES: refactor and add HAL layer 2020-12-10 09:04:47 +00:00