Searched refs:n_bytes (Results 1 – 1 of 1) sorted by relevance
2654 mbedtls_mpi *X, size_t n_bytes, in mpi_fill_random_internal() argument2658 const size_t limbs = CHARS_TO_LIMBS( n_bytes ); in mpi_fill_random_internal()2659 const size_t overhead = ( limbs * ciL ) - n_bytes; in mpi_fill_random_internal()2666 MBEDTLS_MPI_CHK( f_rng( p_rng, (unsigned char *) X->p + overhead, n_bytes ) ); in mpi_fill_random_internal()2711 size_t n_bytes = ( n_bits + 7 ) / 8; in mbedtls_mpi_random() local2736 count = ( n_bytes > 4 ? 30 : 250 ); in mbedtls_mpi_random()2757 MBEDTLS_MPI_CHK( mpi_fill_random_internal( X, n_bytes, f_rng, p_rng ) ); in mbedtls_mpi_random()2758 MBEDTLS_MPI_CHK( mbedtls_mpi_shift_r( X, 8 * n_bytes - n_bits ) ); in mbedtls_mpi_random()
Completed in 9 milliseconds