/mbedtls-3.4.0/library/ |
D | bignum_core.c | 482 mbedtls_mpi_uint mm, in mbedtls_mpi_core_montmul() argument 491 mbedtls_mpi_uint u1 = ( T[0] + u0 * B[0] ) * mm; in mbedtls_mpi_core_montmul() 615 mbedtls_mpi_uint mm, in exp_mod_precompute_window() argument 624 mbedtls_mpi_core_montmul( Wtable, Wtable, RR, AN_limbs, N, AN_limbs, mm, temp ); in exp_mod_precompute_window() 635 mbedtls_mpi_core_montmul( Wcur, Wprev, W1, AN_limbs, N, AN_limbs, mm, temp ); in exp_mod_precompute_window() 678 const mbedtls_mpi_uint mm = mbedtls_mpi_core_montmul_init( N ); in mbedtls_mpi_core_exp_mod() local 682 mm, RR, in mbedtls_mpi_core_exp_mod() 705 mbedtls_mpi_core_montmul( X, X, X, AN_limbs, N, AN_limbs, mm, temp ); in mbedtls_mpi_core_exp_mod() 732 mbedtls_mpi_core_montmul( X, X, Wselect, AN_limbs, N, AN_limbs, mm, in mbedtls_mpi_core_exp_mod()
|
D | bignum.c | 1506 static void mpi_montg_init( mbedtls_mpi_uint *mm, const mbedtls_mpi *N ) in mpi_montg_init() argument 1508 *mm = mbedtls_mpi_core_montmul_init( N->p ); in mpi_montg_init() 1533 const mbedtls_mpi *N, mbedtls_mpi_uint mm, in mpi_montmul() argument 1536 mbedtls_mpi_core_montmul( A->p, A->p, B->p, B->n, N->p, N->n, mm, T->p ); in mpi_montmul() 1545 mbedtls_mpi_uint mm, mbedtls_mpi *T ) in mpi_montred() argument 1553 mpi_montmul( A, &U, N, mm, T ); in mpi_montred() 1596 mbedtls_mpi_uint ei, mm, state; in mbedtls_mpi_exp_mod() local 1618 mpi_montg_init( &mm, N ); in mbedtls_mpi_exp_mod() 1724 mpi_montmul( &W[1], &RR, N, mm, &T ); in mbedtls_mpi_exp_mod() 1730 mpi_montred( &W[x_index], N, mm, &T ); in mbedtls_mpi_exp_mod() [all …]
|
D | bignum_mod_raw.c | 161 m->rep.mont.mm, T ); in mbedtls_mpi_mod_raw_to_mont_rep() 179 m->rep.mont.mm, T ); in mbedtls_mpi_mod_raw_from_mont_rep()
|
D | bignum_mod.c | 86 m->rep.mont.mm = 0; in mbedtls_mpi_mod_modulus_free() 151 m->rep.mont.mm = mbedtls_mpi_core_montmul_init( m->p ); in mbedtls_mpi_mod_modulus_setup()
|
D | bignum_mod.h | 58 mbedtls_mpi_uint mm; /* Montgomery const for -N^{-1} mod 2^{ciL} */ member
|
D | bignum_core.h | 435 mbedtls_mpi_uint mm, mbedtls_mpi_uint *T );
|
D | ecp.c | 2016 mbedtls_mpi M, mm; in ecp_comb_recode_scalar() local 2019 mbedtls_mpi_init( &mm ); in ecp_comb_recode_scalar() 2030 MBEDTLS_MPI_CHK( mbedtls_mpi_sub_mpi( &mm, &grp->N, m ) ); in ecp_comb_recode_scalar() 2031 MBEDTLS_MPI_CHK( mbedtls_mpi_safe_cond_assign( &M, &mm, *parity_trick ) ); in ecp_comb_recode_scalar() 2037 mbedtls_mpi_free( &mm ); in ecp_comb_recode_scalar()
|
/mbedtls-3.4.0/tests/suites/ |
D | test_suite_bignum_core.function | 731 mbedtls_mpi N, mm; 734 mbedtls_mpi_init( &mm ); 737 TEST_EQUAL( 0, mbedtls_test_read_mpi( &mm, input_mm ) ); 739 /* The MPI encoding of mm should be 1 limb (sizeof(mbedtls_mpi_uint) == 8) or 745 TEST_ASSERT( mm.n == 1 || mm.n == 2 ); 749 TEST_EQUAL( 1, mm.s ); 755 TEST_EQUAL( result, mm.p[0] ); 759 mbedtls_mpi_free( &mm ); 812 mbedtls_mpi_uint mm = mbedtls_mpi_core_montmul_init( N.p ); 816 mbedtls_mpi_core_montmul( R.p, A.p, B.p, B.n, N.p, N.n, mm, T.p ); [all …]
|
D | test_suite_bignum_mod.function | 74 TEST_ASSERT( m.rep.mont.mm != 0 ); 89 TEST_ASSERT( m.rep.mont.mm == 0 );
|