From 6fbf93d92b4cc1847c9c8abaa53da7a2cc474f34 Mon Sep 17 00:00:00 2001 From: Etienne Carriere Date: Fri, 10 Nov 2023 14:39:36 +0100 Subject: [PATCH] libutee: remove leftover references to libmpa Removes references to libmpa removed since OP-TEE release tag 3.9.0, by commit 7fb525f1f8a6 ("Remove libmpa in favor of libmbedtls"). This change removes configuration switch CFG_TA_MBEDTLS_MPI and CFG_TA_MBEDTLS that are no more used by OP-TEE component. Acked-by: Jens Wiklander Signed-off-by: Etienne Carriere --- lib/libutee/include/tee_arith_internal.h | 6 ------ lib/libutee/tee_api_arith_mpi.c | 4 ---- 2 files changed, 10 deletions(-) diff --git a/lib/libutee/include/tee_arith_internal.h b/lib/libutee/include/tee_arith_internal.h index fc5678edc20..cf1d3edd7e1 100644 --- a/lib/libutee/include/tee_arith_internal.h +++ b/lib/libutee/include/tee_arith_internal.h @@ -22,12 +22,6 @@ */ #define TEE_MATHAPI_EXPORT -/* - * The modes for String Conversion - */ -#define TEE_STRING_MODE_HEX_UC MPA_STRING_MODE_HEX_UC -#define TEE_STRING_MODE_HEX_LC MPA_STRING_MODE_HEX_UC - /*------------------------------------------------------------ * * Define IN, OUT, INBUF and OUTBUF to keep format from the spec. diff --git a/lib/libutee/tee_api_arith_mpi.c b/lib/libutee/tee_api_arith_mpi.c index 5842f13a807..9ccbd7c6807 100644 --- a/lib/libutee/tee_api_arith_mpi.c +++ b/lib/libutee/tee_api_arith_mpi.c @@ -726,10 +726,6 @@ TEE_Result TEE_BigIntExpMod(TEE_BigInt *dest, const TEE_BigInt *op1, return res; } -/* - * Based on libmpa implementation __mpa_egcd(), modified to work with MPI - * instead. - */ static void mpi_egcd(mbedtls_mpi *gcd, mbedtls_mpi *a, mbedtls_mpi *b, mbedtls_mpi *x_in, mbedtls_mpi *y_in) {