Searched hist:d0ea0f9f5933b201299b6d35cb862a19eb7cf3d9 (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/tee/ |
| H A D | fs_htree.c | d0ea0f9f5933b201299b6d35cb862a19eb7cf3d9 Wed Apr 23 15:09:20 UTC 2025 Etienne Carriere <etienne.carriere@foss.st.com> core: fs_htree: Fix AAD length when CFG_REE_FS_HTREE_HASH_SIZE_COMPAT=y
Correct the hash size declared in AAD length declared in REE FS hash tree authentication sequence when CFG_REE_FS_HTREE_HASH_SIZE_COMPAT is enabled in which case the hash is truncated to the size of the FEK key (TEE_FS_HTREE_FEK_SIZE).
The issue has currently no impact since REE FS hash tree authentication is based on AES-GCM but it would be of importance if, for example, one moves to an AES-CCM scheme while still enabling CFG_REE_FS_HTREE_HASH_SIZE_COMPAT (even if unlikely to happen). To prevent such issue in the future, let's declare the effectively used hash size.
Suggested-by: Jens Wiklander <jens.wiklander@linaro.org> Link: https://github.com/OP-TEE/optee_os/pull/7340/commits/087325faec7c057a638cca80f0549e9abe49f190#r2024716984 Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
|