1
0
mirror of https://github.com/ARMmbed/mbedtls.git synced 2025-05-24 07:34:59 +08:00

Add comment to mbedtls_mpi_core_sub() to indicate it is costant time

Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
This commit is contained in:
Waleed Elmelegy 2024-05-21 16:17:06 +00:00
parent e27738308c
commit a9fe03ea4e

View File

@ -376,6 +376,9 @@ mbedtls_mpi_uint mbedtls_mpi_core_add_if(mbedtls_mpi_uint *X,
* \p X may be aliased to \p A or \p B, or even both, but may not overlap
* either otherwise.
*
* This function operates in constant time with respect to the values
* of \p X and \p A and \p B.
*
* \param[out] X The result of the subtraction.
* \param[in] A Little-endian presentation of left operand.
* \param[in] B Little-endian presentation of right operand.