Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 cf5c060 ("libutee: TEE_AllocateOperation(): digest operations must have 0 max key size") Link: 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: cf5c060 ("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>
- Loading branch information