commit | 4ce231ee7325cfdd2592f54ca6161a93701773f6 | [log] [tgz] |
---|---|---|
author | liushiwei <liushiwei@eswin.com> | Wed Jun 16 16:28:47 2021 +0800 |
committer | Jerome Forissier <jerome@forissier.org> | Mon Jun 21 16:24:27 2021 +0200 |
tree | c762874e62e9a28a22b12ce78f26749069a7c62f | |
parent | 3d6d26a26abb51afef6e664dfd9c78665793f5b6 [diff] |
lib: mbedtls: return TEE_ERROR_BAD_PARAMETERS on input data error This change fixes Keymaster VTS if cryptolib uses libmedtls EncryptionOperationsTest, RsaPkcs1Success and EncryptionOperationsTest, RsaOaepSuccess probabilistic failure. We should change error code from libmedtls to TEE_AsymmetricDecrypt. In the same scenario, the tomcrypt return value is eventually Converted to TEE_ERROR_BAD_PARAMETERS,and then pass the test. But mbedtls converted to TEE_ERROR_BAD_STATE, This causes TEE_AsymmetricDecrypt() to panic. Signed-off-by: Liu Shiwei <liushiwei@eswin.com> Tested-by: Liu Shiwei <liushiwei@eswin.com> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jerome Forissier <jerome@forissier.org> Acked-by: Victor Chong <victor.chong@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> [jf: cherry-pick commit 3ddd5cd700ed from master] Signed-off-by: Jerome Forissier <jerome@forissier.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