From 11a81cd7dd9f0863128137f036308287e679b713 Mon Sep 17 00:00:00 2001 From: Waleed Elmelegy Date: Thu, 23 May 2024 08:01:58 +0000 Subject: [PATCH] Add comment to mbedtls_mpi_core_mla() to indicate it is costant time Signed-off-by: Waleed Elmelegy --- library/bignum_core.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/bignum_core.h b/library/bignum_core.h index 92c8d47db5..27c0f9df4b 100644 --- a/library/bignum_core.h +++ b/library/bignum_core.h @@ -397,6 +397,9 @@ mbedtls_mpi_uint mbedtls_mpi_core_sub(mbedtls_mpi_uint *X, * * This function operates modulo `2^(biL*X_limbs)`. * + * This function operates in constant time with respect to the values + * of \p X and \p A and \p b. + * * \param[in,out] X The pointer to the (little-endian) array * representing the bignum to accumulate onto. * \param X_limbs The number of limbs of \p X. This must be