• Home
  • Raw
  • Download

Lines Matching refs:limbs

43     mbedtls_mpi_core_cond_assign(X, A, N->limbs, assign);  in mbedtls_mpi_mod_raw_cond_assign()
51 mbedtls_mpi_core_cond_swap(X, Y, N->limbs, swap); in mbedtls_mpi_mod_raw_cond_swap()
64 ret = mbedtls_mpi_core_read_le(X, N->limbs, in mbedtls_mpi_mod_raw_read()
68 ret = mbedtls_mpi_core_read_be(X, N->limbs, in mbedtls_mpi_mod_raw_read()
79 if (!mbedtls_mpi_core_lt_ct(X, N->p, N->limbs)) { in mbedtls_mpi_mod_raw_read()
97 return mbedtls_mpi_core_write_le(A, N->limbs, in mbedtls_mpi_mod_raw_write()
100 return mbedtls_mpi_core_write_be(A, N->limbs, in mbedtls_mpi_mod_raw_write()
118 mbedtls_mpi_uint c = mbedtls_mpi_core_sub(X, A, B, N->limbs); in mbedtls_mpi_mod_raw_sub()
120 (void) mbedtls_mpi_core_add_if(X, N->p, N->limbs, (unsigned) c); in mbedtls_mpi_mod_raw_sub()
129 mbedtls_mpi_uint c = mbedtls_mpi_core_sub(X, X, N->p, N->limbs); in mbedtls_mpi_mod_raw_fix_quasi_reduction()
131 (void) mbedtls_mpi_core_add_if(X, N->p, N->limbs, (unsigned) c); in mbedtls_mpi_mod_raw_fix_quasi_reduction()
142 mbedtls_mpi_core_montmul(X, A, B, N->limbs, N->p, N->limbs, in mbedtls_mpi_mod_raw_mul()
194 carry = mbedtls_mpi_core_add(X, A, B, N->limbs); in mbedtls_mpi_mod_raw_add()
195 borrow = mbedtls_mpi_core_sub(X, X, N->p, N->limbs); in mbedtls_mpi_mod_raw_add()
196 (void) mbedtls_mpi_core_add_if(X, N->p, N->limbs, (unsigned) (carry ^ borrow)); in mbedtls_mpi_mod_raw_add()
236 int ret = mbedtls_mpi_core_random(X, min, N->p, N->limbs, f_rng, p_rng); in mbedtls_mpi_mod_raw_random()
250 const size_t t_limbs = mbedtls_mpi_core_montmul_working_limbs(N->limbs); in mbedtls_mpi_mod_raw_to_mont_rep()
256 mbedtls_mpi_core_to_mont_rep(X, X, N->p, N->limbs, in mbedtls_mpi_mod_raw_to_mont_rep()
267 const size_t t_limbs = mbedtls_mpi_core_montmul_working_limbs(N->limbs); in mbedtls_mpi_mod_raw_from_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()
285 mbedtls_mpi_core_sub(X, N->p, A, N->limbs); in mbedtls_mpi_mod_raw_neg()
289 mbedtls_mpi_uint borrow = mbedtls_mpi_core_sub(X, X, N->p, N->limbs); in mbedtls_mpi_mod_raw_neg()
290 (void) mbedtls_mpi_core_add_if(X, N->p, N->limbs, (unsigned) borrow); in mbedtls_mpi_mod_raw_neg()