Home
last modified time | relevance | path

Searched refs:mm (Results 1 – 11 of 11) sorted by relevance

/mbedtls-3.5.0/library/
Dbignum_core.c473 mbedtls_mpi_uint mm, in mbedtls_mpi_core_montmul() argument
481 mbedtls_mpi_uint u1 = (T[0] + u0 * B[0]) * mm; in mbedtls_mpi_core_montmul()
664 mbedtls_mpi_uint mm, in exp_mod_precompute_window() argument
673 mbedtls_mpi_core_montmul(Wtable, Wtable, RR, AN_limbs, N, AN_limbs, mm, temp); in exp_mod_precompute_window()
683 mbedtls_mpi_core_montmul(Wcur, Wprev, W1, AN_limbs, N, AN_limbs, mm, temp); in exp_mod_precompute_window()
726 const mbedtls_mpi_uint mm = mbedtls_mpi_core_montmul_init(N); in mbedtls_mpi_core_exp_mod() local
730 mm, RR, in mbedtls_mpi_core_exp_mod()
752 mbedtls_mpi_core_montmul(X, X, X, AN_limbs, N, AN_limbs, mm, temp); in mbedtls_mpi_core_exp_mod()
775 mbedtls_mpi_core_montmul(X, X, Wselect, AN_limbs, N, AN_limbs, mm, in mbedtls_mpi_core_exp_mod()
822 mbedtls_mpi_uint mm, in mbedtls_mpi_core_to_mont_rep() argument
[all …]
Dbignum_core.h451 mbedtls_mpi_uint mm, mbedtls_mpi_uint *T);
697 mbedtls_mpi_uint mm,
734 mbedtls_mpi_uint mm,
Dbignum.c1569 static void mpi_montg_init(mbedtls_mpi_uint *mm, const mbedtls_mpi *N) in mpi_montg_init() argument
1571 *mm = mbedtls_mpi_core_montmul_init(N->p); in mpi_montg_init()
1596 const mbedtls_mpi *N, mbedtls_mpi_uint mm, in mpi_montmul() argument
1599 mbedtls_mpi_core_montmul(A->p, A->p, B->p, B->n, N->p, N->n, mm, T->p); in mpi_montmul()
1608 mbedtls_mpi_uint mm, mbedtls_mpi *T) in mpi_montred() argument
1616 mpi_montmul(A, &U, N, mm, T); in mpi_montred()
1660 mbedtls_mpi_uint ei, mm, state; in mbedtls_mpi_exp_mod() local
1685 mpi_montg_init(&mm, N); in mbedtls_mpi_exp_mod()
1790 mpi_montmul(&W[1], &RR, N, mm, &T); in mbedtls_mpi_exp_mod()
1796 mpi_montred(&W[x_index], N, mm, &T); in mbedtls_mpi_exp_mod()
[all …]
Dbignum_mod_raw.c143 N->rep.mont.mm, T); in mbedtls_mpi_mod_raw_mul()
257 N->rep.mont.mm, N->rep.mont.rr, T); in mbedtls_mpi_mod_raw_to_mont_rep()
274 mbedtls_mpi_core_from_mont_rep(X, X, N->p, N->limbs, N->rep.mont.mm, T); in mbedtls_mpi_mod_raw_from_mont_rep()
Dbignum_mod.c88 N->rep.mont.mm = 0; in mbedtls_mpi_mod_modulus_free()
153 N->rep.mont.mm = mbedtls_mpi_core_montmul_init(N->p); in mbedtls_mpi_mod_modulus_setup()
252 Nmont.rep.mont.mm, Nmont.rep.mont.rr, in mbedtls_mpi_mod_inv_non_mont()
263 Nmont.rep.mont.mm, working_memory); in mbedtls_mpi_mod_inv_non_mont()
Dbignum_mod.h123 mbedtls_mpi_uint mm; /* Montgomery const for -N^{-1} mod 2^{ciL} */ member
Decp.c2137 mbedtls_mpi M, mm; in ecp_comb_recode_scalar() local
2140 mbedtls_mpi_init(&mm); in ecp_comb_recode_scalar()
2152 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(&mm, &grp->N, m)); in ecp_comb_recode_scalar()
2153 MBEDTLS_MPI_CHK(mbedtls_mpi_safe_cond_assign(&M, &mm, *parity_trick)); in ecp_comb_recode_scalar()
2159 mbedtls_mpi_free(&mm); in ecp_comb_recode_scalar()
/mbedtls-3.5.0/tests/suites/
Dtest_suite_bignum_core.function754 mbedtls_mpi N, mm;
757 mbedtls_mpi_init(&mm);
760 TEST_EQUAL(0, mbedtls_test_read_mpi(&mm, input_mm));
762 /* The MPI encoding of mm should be 1 limb (sizeof(mbedtls_mpi_uint) == 8) or
768 TEST_ASSERT(mm.n == 1 || mm.n == 2);
772 TEST_EQUAL(1, mm.s);
778 TEST_EQUAL(result, mm.p[0]);
782 mbedtls_mpi_free(&mm);
837 mbedtls_mpi_uint mm = mbedtls_mpi_core_montmul_init(N.p);
841 mbedtls_mpi_core_montmul(R.p, A.p, B.p, B.n, N.p, N.n, mm, T.p);
[all …]
Dtest_suite_bignum_mod_raw.function755 m.rep.mont.mm, m.rep.mont.rr, T);
762 m.rep.mont.mm, m.rep.mont.rr, T);
820 m.rep.mont.mm, T);
827 m.rep.mont.mm, T);
Dtest_suite_bignum_mod.function75 TEST_ASSERT(m.rep.mont.mm != 0);
89 TEST_ASSERT(m.rep.mont.mm == 0);
Dtest_suite_ecp.function1499 TEST_ASSERT(m.rep.mont.mm != 0);