Unify parameter naming

Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
This commit is contained in:
Gabor Mezei 2022-08-02 11:50:44 +02:00 committed by Janos Follath
parent e66b1d47ed
commit 535f36d203
2 changed files with 7 additions and 7 deletions

View file

@ -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 );

View file

@ -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 )
{