From 6da3a3b15f83055b1f005672e4f516907ec53a64 Mon Sep 17 00:00:00 2001 From: Tom Cosgrove Date: Thu, 29 Sep 2022 17:20:18 +0100 Subject: [PATCH] Fix doc regarding aliasing of modulus input to mbedtls_mpi_core_montmul() Signed-off-by: Tom Cosgrove --- library/bignum_core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/bignum_core.h b/library/bignum_core.h index 1ef1b683c3..8e227f8d8e 100644 --- a/library/bignum_core.h +++ b/library/bignum_core.h @@ -273,8 +273,8 @@ mbedtls_mpi_uint mbedtls_mpi_core_montmul_init( const mbedtls_mpi_uint *N ); * \param[in] N Little-endian presentation of the modulus. * This must be odd, and have exactly the same number * of limbs as \p A. - * It must not alias or otherwise overlap any of the - * other parameters. + * It may alias \p X, but must not alias or otherwise + * overlap any of the other parameters. * \param[in] AN_limbs The number of limbs in \p X, \p A and \p N. * \param mm The Montgomery constant for \p N: -N^-1 mod 2^biL. * This can be calculated by `mbedtls_mpi_core_montmul_init()`.