Home
last modified time | relevance | path

Searched refs:random_get_bytes (Results 1 – 25 of 48) sorted by relevance

12

/freebsd-12.1/contrib/wpa/src/crypto/
H A Drandom.h16 #define random_get_bytes(b, l) os_get_random((b), (l)) macro
23 int random_get_bytes(void *buf, size_t len);
H A Drandom.c159 int random_get_bytes(void *buf, size_t len) in random_get_bytes() function
401 if (random_get_bytes(buf, RANDOM_ENTROPY_SIZE) < 0) in random_write_entropy()
/freebsd-12.1/sys/cddl/compat/opensolaris/sys/
H A Drandom.h34 #define random_get_bytes(p, s) read_random((p), (int)(s)) macro
/freebsd-12.1/contrib/wpa/src/eap_common/
H A Deap_eke_common.c361 if (random_get_bytes(iv, AES_BLOCK_SIZE)) in eap_eke_dhcomp()
612 if (random_get_bytes(pos, block_size)) in eap_eke_prot()
622 if (random_get_bytes(pos, pad)) in eap_eke_prot()
/freebsd-12.1/contrib/wpa/src/eap_server/
H A Deap_server_md5.c50 if (random_get_bytes(data->challenge, CHALLENGE_LEN)) { in eap_md5_buildReq()
H A Dikev2.c1097 if (random_get_bytes(data->i_nonce, data->i_nonce_len)) in ikev2_build_sa_init()
1145 if (random_get_bytes(data->shared_secret, 16)) in ikev2_build_sa_auth()
H A Deap_server_mschapv2.c105 random_get_bytes(data->auth_challenge, CHALLENGE_LEN)) { in eap_mschapv2_build_challenge()
H A Deap_server_psk.c62 if (random_get_bytes(data->rand_s, EAP_PSK_RAND_LEN)) { in eap_psk_build_1()
H A Deap_server_sake.c153 if (random_get_bytes(data->rand_s, EAP_SAKE_RAND_LEN)) { in eap_sake_build_challenge()
H A Deap_server_fast.c645 if (random_get_bytes(binding->nonce, sizeof(binding->nonce)) < 0) { in eap_fast_build_crypto_binding()
695 if (random_get_bytes(pac_key, EAP_FAST_PAC_KEY_LEN) < 0 || in eap_fast_build_pac()
/freebsd-12.1/contrib/wpa/src/wps/
H A Dwps_common.c246 if (random_get_bytes((unsigned char *) &val, sizeof(val)) < 0) in wps_generate_pin()
683 if (random_get_bytes(wpabuf_put(pw, WPS_OOB_DEVICE_PASSWORD_LEN), in wps_nfc_token_gen()
685 random_get_bytes((u8 *) &val, sizeof(val))) { in wps_nfc_token_gen()
H A Dwps_enrollee.c41 if (random_get_bytes(wps->snonce, 2 * WPS_SECRET_NONCE_LEN) < 0) in wps_build_e_hash()
110 if (random_get_bytes(wps->nonce_e, WPS_NONCE_LEN) < 0) in wps_build_m1()
309 random_get_bytes(psk, sizeof(psk)) < 0) { in wps_build_cred_network_key()
H A Dwps_attr_build.c401 if (random_get_bytes(iv, block_size) < 0) in wps_build_encr_settings()
/freebsd-12.1/contrib/wpa/wpa_supplicant/
H A Dmesh_rsn.c185 if (random_get_bytes(rsn->mgtk, rsn->mgtk_len) < 0) in __mesh_rsn_auth_init()
192 if (random_get_bytes(rsn->igtk, rsn->igtk_len) < 0) in __mesh_rsn_auth_init()
519 if (random_get_bytes(sta->my_nonce, WPA_NONCE_LEN) < 0) { in mesh_rsn_init_ampe_sta()
/freebsd-12.1/contrib/wpa/src/tls/
H A Dtlsv1_server_write.c60 if (random_get_bytes(conn->server_random + 4, TLS_RANDOM_LEN - 4)) { in tls_write_server_hello()
69 if (random_get_bytes(conn->session_id, conn->session_id_len)) { in tls_write_server_hello()
416 if (random_get_bytes(conn->dh_secret, conn->dh_secret_len)) { in tls_write_server_key_exchange()
H A Dtlsv1_client_write.c79 if (random_get_bytes(conn->client_random + 4, TLS_RANDOM_LEN - 4)) { in tls_send_client_hello()
363 if (random_get_bytes(csecret, csecret_len)) { in tlsv1_key_x_dh()
/freebsd-12.1/contrib/wpa/src/eap_peer/
H A Deap_mschapv2.c195 } else if (random_get_bytes(peer_challenge, MSCHAPV2_CHAL_LEN)) { in eap_mschapv2_challenge_reply()
581 if (random_get_bytes(cp->peer_challenge, MSCHAPV2_CHAL_LEN)) in eap_mschapv2_change_password()
H A Deap_leap.c169 if (random_get_bytes(pos, LEAP_CHALLENGE_LEN)) { in eap_leap_process_success()
H A Deap_sim.c92 if (random_get_bytes(data->nonce_mt, EAP_SIM_NONCE_MT_LEN)) { in eap_sim_init()
1189 if (random_get_bytes(data->nonce_mt, EAP_SIM_NONCE_MT_LEN)) { in eap_sim_init_for_reauth()
H A Deap_psk.c129 if (random_get_bytes(data->rand_p, EAP_PSK_RAND_LEN)) { in eap_psk_process_1()
H A Deap_sake.c219 if (random_get_bytes(data->rand_p, EAP_SAKE_RAND_LEN)) { in eap_sake_process_challenge()
H A Deap_pax.c172 if (random_get_bytes(data->rand.r.y, EAP_PAX_RAND_LEN)) { in eap_pax_process_std_1()
/freebsd-12.1/contrib/wpa/src/ap/
H A Dwpa_auth.c268 if (random_get_bytes(wpa_auth->group->GMK, WPA_GMK_LEN)) { in wpa_rekey_gmk()
359 if (random_get_bytes(group->GMK, WPA_GMK_LEN) < 0) in wpa_group_init_gmk_and_counter()
375 if (random_get_bytes(rkey, sizeof(rkey)) < 0) in wpa_group_init_gmk_and_counter()
1392 if (random_get_bytes(pos, gtk_len) < 0) in wpa_gmk_to_gtk()
1964 if (random_get_bytes(sm->ANonce, WPA_NONCE_LEN)) { in SM_STATE()
1982 if (random_get_bytes(sm->ANonce, WPA_NONCE_LEN)) { in wpa_auth_sm_ptk_update()
2687 if (random_get_bytes(dummy_gtk, gtk_len) < 0) { in fils_prepare_plainbuf()
3086 if (random_get_bytes(igtk.igtk, len) < 0) in ieee80211w_kde_add()
3195 if (random_get_bytes(dummy_gtk, gtk_len) < 0) in SM_STATE()
3574 if (random_get_bytes(dummy_gtk, gsm->GTK_len) < 0) in SM_STATE()
[all …]
/freebsd-12.1/contrib/wpa/hostapd/
H A Dhlr_auc_gw.c619 if (random_get_bytes(_rand, 16) < 0) in sim_req_auth()
750 if (random_get_bytes(_rand, EAP_AKA_RAND_LEN) < 0) in aka_req_auth()
/freebsd-12.1/contrib/wpa/src/rsn_supp/
H A Dwpa_ft.c437 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_ft_prepare_auth_request()
1064 if (random_get_bytes(sm->snonce, WPA_NONCE_LEN)) { in wpa_ft_start_over_ds()

12