Lines Matching refs:m
1152 unsigned char w, const mbedtls_mpi *m ) in ecp_comb_fixed() argument
1162 x[i] |= mbedtls_mpi_get_bit( m, i + d * j ) << j; in ecp_comb_fixed()
1310 const mbedtls_mpi *m, const mbedtls_ecp_point *P, in ecp_mul_comb() argument
1390 m_is_odd = ( mbedtls_mpi_get_bit( m, 0 ) == 1 ); in ecp_mul_comb()
1391 MBEDTLS_MPI_CHK( mbedtls_mpi_copy( &M, m ) ); in ecp_mul_comb()
1392 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( &mm, &grp->N, m ) ); in ecp_mul_comb()
1551 const mbedtls_mpi *m, const mbedtls_ecp_point *P, in ecp_mul_mxz() argument
1580 i = mbedtls_mpi_bitlen( m ); /* one past the (zero-based) most significant bit */ in ecp_mul_mxz()
1583 b = mbedtls_mpi_get_bit( m, i ); in ecp_mul_mxz()
1612 const mbedtls_mpi *m, const mbedtls_ecp_point *P, in mbedtls_ecp_mul() argument
1621 if( ( ret = mbedtls_ecp_check_privkey( grp, m ) ) != 0 || in mbedtls_ecp_mul()
1627 return( ecp_mul_mxz( grp, R, m, P, f_rng, p_rng ) ); in mbedtls_ecp_mul()
1631 return( ecp_mul_comb( grp, R, m, P, f_rng, p_rng ) ); in mbedtls_ecp_mul()
1692 const mbedtls_mpi *m, in mbedtls_ecp_mul_shortcuts() argument
1697 if( mbedtls_mpi_cmp_int( m, 1 ) == 0 ) in mbedtls_ecp_mul_shortcuts()
1701 else if( mbedtls_mpi_cmp_int( m, -1 ) == 0 ) in mbedtls_ecp_mul_shortcuts()
1709 MBEDTLS_MPI_CHK( mbedtls_ecp_mul( grp, R, m, P, NULL, NULL ) ); in mbedtls_ecp_mul_shortcuts()
1721 const mbedtls_mpi *m, const mbedtls_ecp_point *P, in mbedtls_ecp_muladd() argument
1732 MBEDTLS_MPI_CHK( mbedtls_ecp_mul_shortcuts( grp, &mP, m, P ) ); in mbedtls_ecp_muladd()
1972 mbedtls_mpi m; in mbedtls_ecp_self_test() local
1988 mbedtls_mpi_init( &m ); in mbedtls_ecp_self_test()
2001 MBEDTLS_MPI_CHK( mbedtls_mpi_lset( &m, 2 ) ); in mbedtls_ecp_self_test()
2002 MBEDTLS_MPI_CHK( mbedtls_ecp_mul( &grp, &P, &m, &grp.G, NULL, NULL ) ); in mbedtls_ecp_self_test()
2007 MBEDTLS_MPI_CHK( mbedtls_mpi_read_string( &m, 16, exponents[0] ) ); in mbedtls_ecp_self_test()
2008 MBEDTLS_MPI_CHK( mbedtls_ecp_mul( &grp, &R, &m, &grp.G, NULL, NULL ) ); in mbedtls_ecp_self_test()
2019 MBEDTLS_MPI_CHK( mbedtls_mpi_read_string( &m, 16, exponents[i] ) ); in mbedtls_ecp_self_test()
2020 MBEDTLS_MPI_CHK( mbedtls_ecp_mul( &grp, &R, &m, &grp.G, NULL, NULL ) ); in mbedtls_ecp_self_test()
2044 MBEDTLS_MPI_CHK( mbedtls_mpi_read_string( &m, 16, exponents[0] ) ); in mbedtls_ecp_self_test()
2045 MBEDTLS_MPI_CHK( mbedtls_ecp_mul( &grp, &R, &m, &P, NULL, NULL ) ); in mbedtls_ecp_self_test()
2056 MBEDTLS_MPI_CHK( mbedtls_mpi_read_string( &m, 16, exponents[i] ) ); in mbedtls_ecp_self_test()
2057 MBEDTLS_MPI_CHK( mbedtls_ecp_mul( &grp, &R, &m, &P, NULL, NULL ) ); in mbedtls_ecp_self_test()
2082 mbedtls_mpi_free( &m ); in mbedtls_ecp_self_test()