From 535f36d203be232c8f231d200b580bd26039f988 Mon Sep 17 00:00:00 2001 From: Gabor Mezei Date: Tue, 2 Aug 2022 11:50:44 +0200 Subject: [PATCH] Unify parameter naming Signed-off-by: Gabor Mezei --- library/bignum_mod.h | 2 +- library/bignum_new.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/library/bignum_mod.h b/library/bignum_mod.h index 342bf17b5..97b3fc712 100644 --- a/library/bignum_mod.h +++ b/library/bignum_mod.h @@ -76,7 +76,7 @@ void mbedtls_mpi_mod_modulus_free( mbedtls_mpi_mod_modulus *m ); int mbedtls_mpi_mod_modulus_setup( mbedtls_mpi_mod_modulus *m, mbedtls_mpi_uint *p, - size_t n, + size_t pn, int ext_rep, int int_rep ); diff --git a/library/bignum_new.c b/library/bignum_new.c index 142d15dc2..8a7580633 100644 --- a/library/bignum_new.c +++ b/library/bignum_new.c @@ -143,19 +143,19 @@ void mbedtls_mpi_mod_modulus_free( mbedtls_mpi_mod_modulus *m ) } int mbedtls_mpi_mod_modulus_setup( mbedtls_mpi_mod_modulus *m, - mbedtls_mpi_uint *X, - size_t nx, + mbedtls_mpi_uint *p, + size_t pn, int ext_rep, int int_rep ) { int ret = 0; - if ( X == NULL || m == NULL ) + if ( p == NULL || m == NULL ) return( MBEDTLS_ERR_MPI_BAD_INPUT_DATA ); - m->p = X; - m->n = nx; - m->plen = mbedtls_mpi_core_bitlen( X, nx ); + m->p = p; + m->n = pn; + m->plen = mbedtls_mpi_core_bitlen( p, pn ); switch( ext_rep ) {