Lines Matching refs:p_rng
195 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in dhm_random_below() argument
199 MBEDTLS_MPI_CHK( mbedtls_mpi_random( R, 3, M, f_rng, p_rng ) ); in dhm_random_below()
208 void *p_rng ) in dhm_make_common() argument
219 MBEDTLS_MPI_CHK( mbedtls_mpi_fill_random( &ctx->X, x_size, f_rng, p_rng ) ); in dhm_make_common()
224 ret = dhm_random_below( &ctx->X, &ctx->P, f_rng, p_rng ); in dhm_make_common()
250 void *p_rng ) in mbedtls_dhm_make_params() argument
260 ret = dhm_make_common( ctx, x_size, f_rng, p_rng ); in mbedtls_dhm_make_params()
341 void *p_rng ) in mbedtls_dhm_make_public() argument
351 ret = dhm_make_common( ctx, x_size, f_rng, p_rng ); in mbedtls_dhm_make_public()
373 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in dhm_update_blinding() argument
413 MBEDTLS_MPI_CHK( dhm_random_below( &ctx->Vi, &ctx->P, f_rng, p_rng ) ); in dhm_update_blinding()
418 MBEDTLS_MPI_CHK( dhm_random_below( &R, &ctx->P, f_rng, p_rng ) ); in dhm_update_blinding()
439 void *p_rng ) in mbedtls_dhm_calc_secret() argument
459 MBEDTLS_MPI_CHK( dhm_update_blinding( ctx, f_rng, p_rng ) ); in mbedtls_dhm_calc_secret()