Lines Matching refs:p_rng
156 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in dhm_random_below() argument
160 MBEDTLS_MPI_CHK( mbedtls_mpi_random( R, 3, M, f_rng, p_rng ) ); in dhm_random_below()
169 void *p_rng ) in dhm_make_common() argument
180 MBEDTLS_MPI_CHK( mbedtls_mpi_fill_random( &ctx->X, x_size, f_rng, p_rng ) ); in dhm_make_common()
185 ret = dhm_random_below( &ctx->X, &ctx->P, f_rng, p_rng ); in dhm_make_common()
211 void *p_rng ) in mbedtls_dhm_make_params() argument
221 ret = dhm_make_common( ctx, x_size, f_rng, p_rng ); in mbedtls_dhm_make_params()
305 void *p_rng ) in mbedtls_dhm_make_public() argument
315 ret = dhm_make_common( ctx, x_size, f_rng, p_rng ); in mbedtls_dhm_make_public()
337 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng ) in dhm_update_blinding() argument
377 MBEDTLS_MPI_CHK( dhm_random_below( &ctx->Vi, &ctx->P, f_rng, p_rng ) ); in dhm_update_blinding()
382 MBEDTLS_MPI_CHK( dhm_random_below( &R, &ctx->P, f_rng, p_rng ) ); in dhm_update_blinding()
403 void *p_rng ) in mbedtls_dhm_calc_secret() argument
422 MBEDTLS_MPI_CHK( dhm_update_blinding( ctx, f_rng, p_rng ) ); in mbedtls_dhm_calc_secret()