Home
last modified time | relevance | path

Searched hist:"301 ade763bdcc8dac5a819f5fc6e9d7d5ac6989b" (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/lib/libtomcrypt/
H A Dsm2-pke.c301ade763bdcc8dac5a819f5fc6e9d7d5ac6989b Thu Nov 05 15:36:58 UTC 2020 Etienne Carriere <etienne.carriere@linaro.org> core: ltc: fix return value in crypto API SM2 PKA decrypt

Fix calloc() failure case in core crypto API function for SM2 PKE
decryption. Prior this change the function failed but return 0/OK.
This change sets the return value to TEE_ERROR_OUT_OF_MEMORY before
reaching the function exit sequence.

Fixes: f9a78287dd12 (core: ltc: add support for SM2 PKE)
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Jerome Forissier <jerome@forissier.org>