From 84dc02c8f532e344b719fd03d764db2ac7099669 Mon Sep 17 00:00:00 2001 From: gabor-mezei-arm Date: Mon, 27 Sep 2021 12:47:06 +0200 Subject: [PATCH] Remove module dependency Elinimate macros defined by modules locally in the functions that are moving to the new constant-time module. Signed-off-by: gabor-mezei-arm --- library/bignum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/bignum.c b/library/bignum.c index da115a711d..48ab24c2a3 100644 --- a/library/bignum.c +++ b/library/bignum.c @@ -1277,7 +1277,7 @@ static unsigned mbedtls_cf_mpi_uint_lt( const mbedtls_mpi_uint x, ret |= y & cond; - ret = ret >> ( biL - 1 ); + ret = ret >> ( sizeof( mbedtls_mpi_uint ) * 8 - 1 ); return (unsigned) ret; }