• Home
  • Raw
  • Download

Lines Matching refs:limbs

120     size_t limbs;
125 TEST_EQUAL(0, mbedtls_test_read_mpi_core(&upper_bound, &limbs,
127 ASSERT_ALLOC(lower_bound, limbs);
129 ASSERT_ALLOC(result, limbs);
132 mbedtls_mpi_core_random(result, min, upper_bound, limbs,
136 TEST_EQUAL(0, mbedtls_mpi_core_lt_ct(result, lower_bound, limbs));
137 TEST_EQUAL(1, mbedtls_mpi_core_lt_ct(result, upper_bound, limbs));
161 size_t limbs = max_legacy.n;
162 ASSERT_ALLOC(R_core, limbs);
166 int core_ret = mbedtls_mpi_core_random(R_core, min, max_legacy.p, limbs,
177 ASSERT_COMPARE(R_core, limbs * ciL,
212 ASSERT_ALLOC(R_core, N.limbs);
213 ASSERT_ALLOC(R_mod_raw, N.limbs);
214 ASSERT_ALLOC(R_mod_digits, N.limbs);
216 R_mod_digits, N.limbs),
221 min, N.p, N.limbs,
240 ASSERT_COMPARE(R_core, N.limbs * ciL,
241 R_mod_raw, N.limbs * ciL);
244 ASSERT_COMPARE(R_core, N.limbs * ciL,
245 R_mod_digits, N.limbs * ciL);
276 size_t limbs;
288 TEST_EQUAL(0, mbedtls_test_read_mpi_core(&upper_bound, &limbs,
290 ASSERT_ALLOC(result, limbs);
292 n_bits = mbedtls_mpi_core_bitlen(upper_bound, limbs);
310 min, upper_bound, limbs,
315 mbedtls_mpi B = { 1, limbs, upper_bound };
316 mbedtls_mpi R = { 1, limbs, result };
342 bound_bytes.len = limbs * sizeof(mbedtls_mpi_uint);
344 mbedtls_mpi_core_write_be(upper_bound, limbs,
418 size_t result_limbs = N.limbs + result_limbs_delta;
430 TEST_EQUAL(result_limbs, N.limbs);
432 TEST_EQUAL(mbedtls_mpi_core_lt_ct(result_digits, N.p, N.limbs),
440 /* When the result has the right number of limbs, also test mod_raw
447 TEST_EQUAL(mbedtls_mpi_core_lt_ct(result_digits, N.p, N.limbs),