Lines Matching refs:p_rng
1206 MBEDTLS_MPI_CHK(mbedtls_mpi_random((X), 2, &grp->P, f_rng, p_rng))
1690 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in ecp_randomize_jac() argument
1694 return mbedtls_internal_ecp_randomize_jac(grp, pt, f_rng, p_rng); in ecp_randomize_jac()
2055 void *p_rng, in ecp_mul_comb_core() argument
2088 MBEDTLS_MPI_CHK(ecp_randomize_jac(grp, R, f_rng, p_rng)); in ecp_mul_comb_core()
2180 void *p_rng, in ecp_mul_comb_after_precomp() argument
2201 f_rng, p_rng, rs_ctx)); in ecp_mul_comb_after_precomp()
2224 MBEDTLS_MPI_CHK(ecp_randomize_jac(grp, RR, f_rng, p_rng)); in ecp_mul_comb_after_precomp()
2300 void *p_rng, in ecp_mul_comb() argument
2372 f_rng, p_rng, rs_ctx)); in ecp_mul_comb()
2461 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in ecp_randomize_mxz() argument
2465 return mbedtls_internal_ecp_randomize_mxz(grp, P, f_rng, p_rng); in ecp_randomize_mxz()
2556 void *p_rng) in ecp_mul_mxz() argument
2585 MBEDTLS_MPI_CHK(ecp_randomize_mxz(grp, &RP, f_rng, p_rng)); in ecp_mul_mxz()
2616 MBEDTLS_MPI_CHK(ecp_randomize_mxz(grp, R, f_rng, p_rng)); in ecp_mul_mxz()
2636 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, in ecp_mul_restartable_internal() argument
2676 MBEDTLS_MPI_CHK(ecp_mul_mxz(grp, R, m, P, f_rng, p_rng)); in ecp_mul_restartable_internal()
2681 MBEDTLS_MPI_CHK(ecp_mul_comb(grp, R, m, P, f_rng, p_rng, rs_ctx)); in ecp_mul_restartable_internal()
2707 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng, in mbedtls_ecp_mul_restartable() argument
2714 return ecp_mul_restartable_internal(grp, R, m, P, f_rng, p_rng, rs_ctx); in mbedtls_ecp_mul_restartable()
2722 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in mbedtls_ecp_mul() argument
2724 return mbedtls_ecp_mul_restartable(grp, R, m, P, f_rng, p_rng, NULL); in mbedtls_ecp_mul()
3096 void *p_rng) in mbedtls_ecp_gen_privkey_mx() argument
3106 f_rng, p_rng)); in mbedtls_ecp_gen_privkey_mx()
3127 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in mbedtls_ecp_gen_privkey_sw() argument
3129 int ret = mbedtls_mpi_random(d, 1, N, f_rng, p_rng); in mbedtls_ecp_gen_privkey_sw()
3145 void *p_rng) in mbedtls_ecp_gen_privkey() argument
3149 return mbedtls_ecp_gen_privkey_mx(grp->nbits, d, f_rng, p_rng); in mbedtls_ecp_gen_privkey()
3155 return mbedtls_ecp_gen_privkey_sw(&grp->N, d, f_rng, p_rng); in mbedtls_ecp_gen_privkey()
3169 void *p_rng) in mbedtls_ecp_gen_keypair_base() argument
3172 MBEDTLS_MPI_CHK(mbedtls_ecp_gen_privkey(grp, d, f_rng, p_rng)); in mbedtls_ecp_gen_keypair_base()
3173 MBEDTLS_MPI_CHK(mbedtls_ecp_mul(grp, Q, d, G, f_rng, p_rng)); in mbedtls_ecp_gen_keypair_base()
3185 void *p_rng) in mbedtls_ecp_gen_keypair() argument
3187 return mbedtls_ecp_gen_keypair_base(grp, &grp->G, d, Q, f_rng, p_rng); in mbedtls_ecp_gen_keypair()
3194 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in mbedtls_ecp_gen_key() argument
3201 return mbedtls_ecp_gen_keypair(&key->grp, &key->d, &key->Q, f_rng, p_rng); in mbedtls_ecp_gen_key()
3325 int (*f_rng)(void *, unsigned char *, size_t), void *p_rng) in mbedtls_ecp_check_pub_priv() argument
3345 MBEDTLS_MPI_CHK(mbedtls_ecp_mul(&grp, &Q, &prv->d, &prv->grp.G, f_rng, p_rng)); in mbedtls_ecp_check_pub_priv()