commit | dbb3274a60f0b258fe115ed1678fc569335c0c5d | [log] [tgz] |
---|---|---|
author | Jerome Forissier <jerome@forissier.org> | Wed Jul 07 14:10:44 2021 +0200 |
committer | Jérôme Forissier <jerome@forissier.org> | Thu Jul 08 13:29:08 2021 +0200 |
tree | 96ce1e7a39e3e1b3bcef1e980dd586e7773b4c17 | |
parent | d0475d2f4acfb499e3da5dfd0ff82d468d302e2d [diff] |
libutee: TEE_MACCompareFinal(): panic if input size is too large The GlobalPlatform TEE Internal Core API specification mentions the following panic reason for TEE_MACCompareFinal(): "if input data exceeds the maximum length for the algorithm". The current code returns TEE_ERROR_MAC_INVALID instead. Fix this by assigning error code TEE_ERROR_BAD_PARAMETERS which gets translated into a panic later. Signed-off-by: Jerome Forissier <jerome@forissier.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
This git contains source code for the secure side implementation of OP-TEE project.
All official OP-TEE documentation has moved to http://optee.readthedocs.io.
// OP-TEE core maintainers