From 818d992cc795e55a6bc653360151b37abd9871b3 Mon Sep 17 00:00:00 2001 From: Tom Cosgrove Date: Thu, 15 Sep 2022 14:58:10 +0100 Subject: [PATCH] Note that T must not overlap other parameters of mbedtls_mpi_core_montmul() Signed-off-by: Tom Cosgrove --- library/bignum_core.h | 1 + 1 file changed, 1 insertion(+) diff --git a/library/bignum_core.h b/library/bignum_core.h index 23d80a0ee0..49ea485259 100644 --- a/library/bignum_core.h +++ b/library/bignum_core.h @@ -264,6 +264,7 @@ mbedtls_mpi_uint mbedtls_mpi_montg_init( const mbedtls_mpi_uint *N ); * \param[in,out] T Temporary storage of size at least 2*AN_limbs+1 limbs. * Its initial content is unused and * its final content is indeterminate. + * It must not overlap any of the other parameters. */ void mbedtls_mpi_core_montmul( mbedtls_mpi_uint *X, const mbedtls_mpi_uint *A,