Searched hist:"5957 a0bdfbd7566cd7cf5deb3ec23f766ae142ef" (Results 1 – 1 of 1) sorted by relevance
| /optee_os/lib/libutee/ |
| H A D | tee_api_operations.c | 5957a0bdfbd7566cd7cf5deb3ec23f766ae142ef Mon Apr 22 17:32:05 UTC 2024 Jens Wiklander <jens.wiklander@linaro.org> libutee: handle buffer_two_blocks correctly
For operations with buffer_two_blocks true, calculate the required size of the out buffer (req_dlen) correctly in TEE_CipherUpdate(). tee_buffer_update() is fixed with a matching update.
buffer_two_blocks set to true mandates buffering at least one block + a byte and at most two full blocks.
Fix needed by TEE_ALG_AES_CTS and TEE_ALG_AES_XTS.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@foss.st.com>
|