esp-idf/components/mbedtls/port/aes
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
..
block mbedtls: fix null pointer dereference of variable iv_off 2023-01-24 12:20:00 +05:30
dma aes: fix DMA descriptor calculation for the alignment case 2023-05-31 14:19:58 +05:30
esp_aes_common.c mbedtls: Update licenses of files updated in mbedtls-3.1 update 2022-03-04 05:18:58 +00:00
esp_aes_gcm.c mbedtls/port: refactor sanity checks and their return values 2023-01-16 15:04:08 +05:30
esp_aes_xts.c docs: update the algorithm and key name from AES-XTS to XTS-AES 2023-05-15 17:54:50 +08:00