Home
last modified time | relevance | path

Searched hist:c282ebd61200b0cb0830399c1c33514dbd129dfd (Results 1 – 1 of 1) sorted by relevance

/optee_os/lib/libmbedtls/core/
H A Drsa.cc282ebd61200b0cb0830399c1c33514dbd129dfd Thu Nov 11 02:30:45 UTC 2021 lubing <lubing@eswin.com> lib: mbebtls: correct return value in RSA-SSA signature verification

The value TEE_ERROR_MAC_INVALID returned by function
crypto_acipher_rsassa_verify() of mbedtls library will
cause TEE_AsymmetricVerifyDigest() to call TEE_Panic()
when it reports an invalid signature. Fix this by returning
TEE_ERROR_SIGNATURE_INVALID instead as specified by
the GPD TEE Internal Core API specifications.

Signed-off-by: lubing <lubing@eswin.com>
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>