Add a const annotation to the non-changing argument of mpi_sub_mul

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
Gilles Peskine 2020-06-04 15:01:32 +02:00
parent c64d847127
commit e9073a6cb2

View File

@ -1252,7 +1252,9 @@ cleanup:
/*
* Helper for mbedtls_mpi subtraction
*/
static void mpi_sub_hlp( size_t n, mbedtls_mpi_uint *s, mbedtls_mpi_uint *d )
static void mpi_sub_hlp( size_t n,
const mbedtls_mpi_uint *s,
mbedtls_mpi_uint *d )
{
size_t i;
mbedtls_mpi_uint c, z;