Home
last modified time | relevance | path

Searched refs:hostap_rng_fn (Results 1 – 2 of 2) sorted by relevance

/hostap-latest/src/crypto/
Dcrypto_mbedtls_alt.c156 int (*hostap_rng_fn)(void*, unsigned char*, size_t) = mbedtls_psa_get_random; variable
163 int(*hostap_rng_fn)(void*, unsigned char*, size_t) = mbedtls_ctr_drbg_random; variable
1223 …return mbedtls_mpi_random((mbedtls_mpi *)r, 0, (mbedtls_mpi *)m, hostap_rng_fn, hostap_rng_ctx()) ? in crypto_bignum_rand()
1451 … mbedtls_dhm_make_public(ctx, (int)prime_len, pubkey, prime_len, hostap_rng_fn, hostap_rng_ctx())) in crypto_mbedtls_dh_init_public()
1516 mbedtls_dhm_calc_secret(&ctx, secret, *len, len, hostap_rng_fn, hostap_rng_ctx()) ? in crypto_dh_derive_secret()
1608 …mbedtls_dhm_calc_secret(ctx, wpabuf_mhead(buf), olen, &olen, hostap_rng_fn, hostap_rng_ctx()) == 0) in dh5_derive_shared()
1758 … mbedtls_ecp_gen_key(grp_id, mbedtls_pk_ec(*pk), hostap_rng_fn, hostap_rng_ctx()) ? in crypto_mbedtls_keypair_gen()
1966 …if (mbedtls_ecdh_calc_secret(&ecdh->ctx, &len, wpabuf_mhead(buf), len, hostap_rng_fn, hostap_rng_c… in crypto_ecdh_set_peerkey()
2265 (const mbedtls_ecp_point *)p, hostap_rng_fn, hostap_rng_ctx()) ? in crypto_ec_point_mul()
2386 if (mbedtls_pk_parse_key(ctx, der, der_len, NULL, 0, hostap_rng_fn, hostap_rng_ctx()) == 0) in crypto_ec_key_parse_priv()
[all …]
Dtls_mbedtls_alt.c62 extern int (*hostap_rng_fn)(void*, unsigned char*, size_t);
351 mbedtls_ssl_conf_rng(&tls_conf->conf, hostap_rng_fn, hostap_rng_ctx()); in tls_conf_init()
405 mbedtls_ssl_ticket_setup(&tls_ctx_global.ticket_ctx, hostap_rng_fn, hostap_rng_ctx(), in tls_init()
1618 pwd ? os_strlen(pwd) : 0, hostap_rng_fn, hostap_rng_ctx()); in tls_mbedtls_set_certs()