commit | 3ddd5cd700ed03e2265c9c3286697fd3c395a7bc | [log] [tgz] |
---|---|---|
author | liushiwei <liushiwei@eswin.com> | Wed Jun 16 16:28:47 2021 +0800 |
committer | Jérôme Forissier <jerome@forissier.org> | Mon Jun 21 16:23:11 2021 +0200 |
tree | 5784c6abbeea2bb47978e9db1eeb9d1e981f1449 | |
parent | 760a08351f9d8529ad91933ff39b4cbb7481b868 [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>
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