Searched hist:b291c8ec30395c146c0160e6db20080d759a1e83 (Results 1 – 1 of 1) sorted by relevance
| /optee_os/lib/libutee/ |
| H A D | tee_api_operations.c | b291c8ec30395c146c0160e6db20080d759a1e83 Tue Oct 31 13:13:55 UTC 2023 Vincent Mailhol <mailhol.vincent@wanadoo.fr> libutee: TEE_AllocateOperation(): maxKeySize of digests may take any value
Commit [1] introduced a check to enforce the "maxKeySize" parameter of digest operations to always be zero. This is a violation of the Global Platform specification [2].
Revert commit [1] to allow maxKeySize to take any value for digest operations.
[1] commit cf5c060cec76 ("libutee: TEE_AllocateOperation(): digest operations must have 0 max key size") Link: https://github.com/OP-TEE/optee_os/commit/cf5c060cec76
[2] TEE Internal Core API Specification – Public Release v1.3.1, §6.2.1 TEE_AllocateOperation:
The parameter maxKeySize SHALL be a valid value as defined in Table 5-9 for the algorithm, for algorithms referenced in Table 5-9. For all other algorithms, the maxKeySize parameter may have any value.
CC: Jens Wiklander <jens.wiklander@linaro.org> Fixes: cf5c060cec76 ("libutee: TEE_AllocateOperation(): digest operations must have 0 max key size") Signed-off-by: Vincent Mailhol <mailhol.vincent@wanadoo.fr> Acked-by: Etienne Carriere <etienne.carriere@foss.st.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
|