Lines Matching refs:mm
1528 static void mpi_montg_init( mbedtls_mpi_uint *mm, const mbedtls_mpi *N ) in mpi_montg_init() argument
1539 *mm = ~x + 1; in mpi_montg_init()
1545 …c int mpi_montmul( mbedtls_mpi *A, const mbedtls_mpi *B, const mbedtls_mpi *N, mbedtls_mpi_uint mm, in mpi_montmul() argument
1566 u1 = ( d[0] + u0 * B->p[0] ) * mm; in mpi_montmul()
1588 static int mpi_montred( mbedtls_mpi *A, const mbedtls_mpi *N, mbedtls_mpi_uint mm, const mbedtls_mp… in mpi_montred() argument
1596 return( mpi_montmul( A, &U, N, mm, T ) ); in mpi_montred()
1608 mbedtls_mpi_uint ei, mm, state; in mbedtls_mpi_exp_mod() local
1621 mpi_montg_init( &mm, N ); in mbedtls_mpi_exp_mod()
1673 MBEDTLS_MPI_CHK( mpi_montmul( &W[1], &RR, N, mm, &T ) ); in mbedtls_mpi_exp_mod()
1679 MBEDTLS_MPI_CHK( mpi_montred( X, N, mm, &T ) ); in mbedtls_mpi_exp_mod()
1692 MBEDTLS_MPI_CHK( mpi_montmul( &W[j], &W[j], N, mm, &T ) ); in mbedtls_mpi_exp_mod()
1702 MBEDTLS_MPI_CHK( mpi_montmul( &W[i], &W[1], N, mm, &T ) ); in mbedtls_mpi_exp_mod()
1739 MBEDTLS_MPI_CHK( mpi_montmul( X, X, N, mm, &T ) ); in mbedtls_mpi_exp_mod()
1757 MBEDTLS_MPI_CHK( mpi_montmul( X, X, N, mm, &T ) ); in mbedtls_mpi_exp_mod()
1762 MBEDTLS_MPI_CHK( mpi_montmul( X, &W[wbits], N, mm, &T ) ); in mbedtls_mpi_exp_mod()
1775 MBEDTLS_MPI_CHK( mpi_montmul( X, X, N, mm, &T ) ); in mbedtls_mpi_exp_mod()
1780 MBEDTLS_MPI_CHK( mpi_montmul( X, &W[1], N, mm, &T ) ); in mbedtls_mpi_exp_mod()
1786 MBEDTLS_MPI_CHK( mpi_montred( X, N, mm, &T ) ); in mbedtls_mpi_exp_mod()