Home
last modified time | relevance | path

Searched refs:mont (Results 1 – 7 of 7) sorted by relevance

/mbedtls-3.6.0/library/
Dbignum_mod.c70 if (N->rep.mont.rr != NULL) { in mbedtls_mpi_mod_modulus_free()
71 mbedtls_zeroize_and_free((mbedtls_mpi_uint *) N->rep.mont.rr, in mbedtls_mpi_mod_modulus_free()
73 N->rep.mont.rr = NULL; in mbedtls_mpi_mod_modulus_free()
75 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()
144 ret = set_mont_const_square(&N->rep.mont.rr, N->p, N->limbs); in mbedtls_mpi_mod_modulus_setup()
210 N->rep.mont.rr, in mbedtls_mpi_mod_inv_mont()
231 Nmont.rep.mont.mm, Nmont.rep.mont.rr, in mbedtls_mpi_mod_inv_non_mont()
236 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.h128 mbedtls_mpi_mont_struct mont; member
/mbedtls-3.6.0/tests/suites/
Dtest_suite_bignum_mod.misc.data52 mbedtls_mpi_mod_inv 32-bit Mont. form - base case for negative testing, A = 1 (N, mont(A), mont(A^-…
68 mbedtls_mpi_mod_inv 64-bit Mont. form - base case for negative testing, A = 1 (N, mont(A), mont(A^-…
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.function71 TEST_ASSERT(m.rep.mont.rr != NULL);
72 TEST_ASSERT(m.rep.mont.mm != 0);
85 TEST_ASSERT(m.rep.mont.rr == NULL);
86 TEST_ASSERT(m.rep.mont.mm == 0);
Dtest_suite_ecp.function1416 TEST_ASSERT(m.rep.mont.mm != 0);
1417 TEST_ASSERT(m.rep.mont.rr != NULL);