Lines Matching refs:f_rng
181 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in dhm_random_below()
185 MBEDTLS_MPI_CHK(mbedtls_mpi_random(R, 3, M, f_rng, p_rng)); in dhm_random_below()
193 int (*f_rng)(void *, unsigned char *, size_t), in dhm_make_common()
206 MBEDTLS_MPI_CHK(mbedtls_mpi_fill_random(&ctx->X, x_size, f_rng, p_rng)); in dhm_make_common()
209 ret = dhm_random_below(&ctx->X, &ctx->P, f_rng, p_rng); in dhm_make_common()
237 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_dhm_make_params()
244 ret = dhm_make_common(ctx, x_size, f_rng, p_rng); in mbedtls_dhm_make_params()
322 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_dhm_make_public()
331 ret = dhm_make_common(ctx, x_size, f_rng, p_rng); in mbedtls_dhm_make_public()
356 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in dhm_update_blinding()
394 MBEDTLS_MPI_CHK(dhm_random_below(&ctx->Vi, &ctx->P, f_rng, p_rng)); in dhm_update_blinding()
399 MBEDTLS_MPI_CHK(dhm_random_below(&R, &ctx->P, f_rng, p_rng)); in dhm_update_blinding()
419 int (*f_rng)(void *, unsigned char *, size_t), in mbedtls_dhm_calc_secret()
425 if (f_rng == NULL) { in mbedtls_dhm_calc_secret()
440 MBEDTLS_MPI_CHK(dhm_update_blinding(ctx, f_rng, p_rng)); in mbedtls_dhm_calc_secret()