Skip to content

Commit

Permalink
libutee: remove leftover references to libmpa
Browse files Browse the repository at this point in the history
Removes references to libmpa removed since OP-TEE release tag 3.9.0,
by commit 7fb525f ("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 <[email protected]>
Signed-off-by: Etienne Carriere <[email protected]>
  • Loading branch information
etienne-lms committed Nov 13, 2023
1 parent ce0d3a4 commit 6fbf93d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
6 changes: 0 additions & 6 deletions lib/libutee/include/tee_arith_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 0 additions & 4 deletions lib/libutee/tee_api_arith_mpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 6fbf93d

Please sign in to comment.