Home
last modified time | relevance | path

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

/mbedtls-3.7.0/library/
Dbignum_core.c532 mbedtls_mpi_uint mm, in mbedtls_mpi_core_montmul() argument
540 mbedtls_mpi_uint u1 = (T[0] + u0 * B[0]) * mm; in mbedtls_mpi_core_montmul()
725 mbedtls_mpi_uint mm, in exp_mod_precompute_window() argument
734 mbedtls_mpi_core_montmul(Wtable, Wtable, RR, AN_limbs, N, AN_limbs, mm, temp); in exp_mod_precompute_window()
744 mbedtls_mpi_core_montmul(Wcur, Wprev, W1, AN_limbs, N, AN_limbs, mm, temp); in exp_mod_precompute_window()
787 const mbedtls_mpi_uint mm = mbedtls_mpi_core_montmul_init(N); in mbedtls_mpi_core_exp_mod() local
791 mm, RR, in mbedtls_mpi_core_exp_mod()
813 mbedtls_mpi_core_montmul(X, X, X, AN_limbs, N, AN_limbs, mm, temp); in mbedtls_mpi_core_exp_mod()
836 mbedtls_mpi_core_montmul(X, X, Wselect, AN_limbs, N, AN_limbs, mm, in mbedtls_mpi_core_exp_mod()
876 mbedtls_mpi_uint mm, in mbedtls_mpi_core_to_mont_rep() argument
[all …]
Dbignum_core.h487 mbedtls_mpi_uint mm, mbedtls_mpi_uint *T);
723 mbedtls_mpi_uint mm,
760 mbedtls_mpi_uint mm,
Dbignum_mod.c75 N->rep.mont.mm = 0; in mbedtls_mpi_mod_modulus_free()
143 N->rep.mont.mm = mbedtls_mpi_core_montmul_init(N->p); in mbedtls_mpi_mod_modulus_setup()
231 Nmont.rep.mont.mm, Nmont.rep.mont.rr, in mbedtls_mpi_mod_inv_non_mont()
242 Nmont.rep.mont.mm, working_memory); in mbedtls_mpi_mod_inv_non_mont()
Dbignum_mod_raw.c130 N->rep.mont.mm, T); in mbedtls_mpi_mod_raw_mul()
242 N->rep.mont.mm, N->rep.mont.rr, T); in mbedtls_mpi_mod_raw_to_mont_rep()
258 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.h112 mbedtls_mpi_uint mm; /* Montgomery const for -N^{-1} mod 2^{ciL} */ member
Decp.c2129 mbedtls_mpi M, mm; in ecp_comb_recode_scalar() local
2132 mbedtls_mpi_init(&mm); in ecp_comb_recode_scalar()
2144 MBEDTLS_MPI_CHK(mbedtls_mpi_sub_mpi(&mm, &grp->N, m)); in ecp_comb_recode_scalar()
2145 MBEDTLS_MPI_CHK(mbedtls_mpi_safe_cond_assign(&M, &mm, *parity_trick)); in ecp_comb_recode_scalar()
2151 mbedtls_mpi_free(&mm); in ecp_comb_recode_scalar()
Dbignum.c1696 mbedtls_mpi_uint mm = mbedtls_mpi_core_montmul_init(N->p); in mbedtls_mpi_exp_mod() local
1697 mbedtls_mpi_core_to_mont_rep(X->p, X->p, N->p, N->n, mm, RR.p, T); in mbedtls_mpi_exp_mod()
1699 mbedtls_mpi_core_from_mont_rep(X->p, X->p, N->p, N->n, mm, T); in mbedtls_mpi_exp_mod()
Drsa.c1352 const mbedtls_mpi_uint mm = mbedtls_mpi_core_montmul_init(N->p); in rsa_unblind() local
1373 mbedtls_mpi_core_to_mont_rep(T->p, T->p, N->p, nlimbs, mm, RR.p, M_T.p); in rsa_unblind()
1374 mbedtls_mpi_core_montmul(T->p, T->p, Vf->p, nlimbs, N->p, nlimbs, mm, M_T.p); in rsa_unblind()
/mbedtls-3.7.0/tests/suites/
Dtest_suite_bignum_core.function804 mbedtls_mpi N, mm;
807 mbedtls_mpi_init(&mm);
810 TEST_EQUAL(0, mbedtls_test_read_mpi(&mm, input_mm));
812 /* The MPI encoding of mm should be 1 limb (sizeof(mbedtls_mpi_uint) == 8) or
818 TEST_ASSERT(mm.n == 1 || mm.n == 2);
822 TEST_EQUAL(1, mm.s);
828 TEST_EQUAL(result, mm.p[0]);
832 mbedtls_mpi_free(&mm);
887 mbedtls_mpi_uint mm = mbedtls_mpi_core_montmul_init(N.p);
891 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.function724 m.rep.mont.mm, m.rep.mont.rr, T);
731 m.rep.mont.mm, m.rep.mont.rr, T);
788 m.rep.mont.mm, T);
795 m.rep.mont.mm, T);
Dtest_suite_bignum_mod.function72 TEST_ASSERT(m.rep.mont.mm != 0);
86 TEST_ASSERT(m.rep.mont.mm == 0);
Dtest_suite_ecp.function1700 TEST_ASSERT(m.rep.mont.mm != 0);