From 81e57021c67a1a624fd8085ae287de50121e19bd Mon Sep 17 00:00:00 2001 From: Gabor Mezei Date: Mon, 26 Sep 2022 17:13:33 +0200 Subject: [PATCH] Change the input parameters to be const Signed-off-by: Gabor Mezei --- library/bignum_mod_raw.c | 2 +- library/bignum_mod_raw.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/bignum_mod_raw.c b/library/bignum_mod_raw.c index bb4a37a1a..98994ab36 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 82a8ce851..60c8d8acf 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 );