Change the input parameters to be const
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
diff --git a/library/bignum_mod_raw.c b/library/bignum_mod_raw.c
index bb4a37a..98994ab 100644
--- a/library/bignum_mod_raw.c
+++ b/library/bignum_mod_raw.c
@@ -42,7 +42,7 @@
#include "constant_time_internal.h"
void mbedtls_mpi_mod_raw_cond_assign( mbedtls_mpi_uint *X,
- mbedtls_mpi_uint *Y,
+ const mbedtls_mpi_uint *Y,
const mbedtls_mpi_mod_modulus *m,
unsigned char assign )
{
diff --git a/library/bignum_mod_raw.h b/library/bignum_mod_raw.h
index 82a8ce8..60c8d8a 100644
--- a/library/bignum_mod_raw.h
+++ b/library/bignum_mod_raw.h
@@ -53,7 +53,7 @@
* neither its original value nor the value in \p Y.
*/
void mbedtls_mpi_mod_raw_cond_assign( mbedtls_mpi_uint *X,
- mbedtls_mpi_uint *Y,
+ const mbedtls_mpi_uint *Y,
const mbedtls_mpi_mod_modulus *m,
unsigned char assign );