Searched refs:n_bytes (Results 1 – 2 of 2) sorted by relevance
/mbedtls-latest/library/ |
D | bignum_core.c | 617 size_t n_bytes, in mbedtls_mpi_core_fill_random() argument 621 const size_t limbs = CHARS_TO_LIMBS(n_bytes); in mbedtls_mpi_core_fill_random() 622 const size_t overhead = (limbs * ciL) - n_bytes; in mbedtls_mpi_core_fill_random() 630 MBEDTLS_MPI_CHK(f_rng(p_rng, (unsigned char *) X + overhead, n_bytes)); in mbedtls_mpi_core_fill_random() 646 size_t n_bytes = (n_bits + 7) / 8; in mbedtls_mpi_core_random() local 666 int count = (n_bytes > 4 ? 30 : 250); in mbedtls_mpi_core_random() 678 n_bytes, in mbedtls_mpi_core_random() 680 mbedtls_mpi_core_shift_r(X, limbs, 8 * n_bytes - n_bits); in mbedtls_mpi_core_random()
|
/mbedtls-latest/tests/suites/ |
D | test_suite_bignum_mod.function | 651 size_t n_limbs, n_bytes, a_bytes; 657 n_bytes = n_limbs * sizeof(mbedtls_mpi_uint); 661 TEST_CALLOC(R, n_bytes); 662 TEST_CALLOC(R_COPY, n_bytes); 665 TEST_LE_U(a_bytes, n_bytes);
|