Home
last modified time | relevance | path

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

123

/src/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()
/src/sys/cddl/compat/opensolaris/sys/
H A Drandom.h32 #define random_get_bytes(p, s) read_random((p), (int)(s)) macro
/src/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Drandom.h32 random_get_bytes(uint8_t *ptr, size_t len) in random_get_bytes() function
/src/sys/contrib/openzfs/lib/libspl/include/sys/
H A Drandom.h32 extern int random_get_bytes(uint8_t *ptr, size_t len);
/src/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Drandom.h37 random_get_bytes(uint8_t *p, size_t s) in random_get_bytes() function
/src/sys/contrib/openzfs/lib/libspl/
H A Drandom.c90 random_get_bytes(uint8_t *ptr, size_t len) in random_get_bytes() function
/src/contrib/wpa/src/ap/
H A Dcomeback_token.c89 if (random_get_bytes(comeback_key, COMEBACK_KEY_SIZE) < 0) in auth_build_token_req()
H A Dwpa_auth.c477 if (random_get_bytes(wpa_auth->group->GMK, WPA_GMK_LEN)) { in wpa_rekey_gmk()
649 if (random_get_bytes(group->GMK, WPA_GMK_LEN) < 0) in wpa_group_init_gmk_and_counter()
665 if (random_get_bytes(rkey, sizeof(rkey)) < 0) in wpa_group_init_gmk_and_counter()
1920 if (random_get_bytes(pos, gtk_len) < 0)
2560 if (random_get_bytes(sm->ANonce, WPA_NONCE_LEN)) {
2578 if (random_get_bytes(sm->ANonce, WPA_NONCE_LEN)) {
3411 if (random_get_bytes(stub_gtk, gtk_len) < 0) {
4061 if (random_get_bytes(igtk.igtk, len) < 0)
4092 if (random_get_bytes(bigtk.bigtk, len) < 0)
4656 if (random_get_bytes(stub_gtk, gtk_len) < 0)
[all …]
H A Dwpa_auth_ft.c999 if (random_get_bytes(item->nonce, FT_RRB_NONCE_LEN) < 0) { in wpa_ft_rrb_seq_req()
1178 if (random_get_bytes((u8 *) &rkh_seq->tx.seq, in wpa_ft_new_seq()
1184 if (random_get_bytes((u8 *) &rkh_seq->tx.dom, in wpa_ft_new_seq()
2049 random_get_bytes(sm->ft_pending_pull_nonce, FT_RRB_NONCE_LEN) < 0) { in wpa_ft_pull_pmk_r1()
2256 if (random_get_bytes(keybuf, key_len) < 0) in wpa_ft_gtk_subelem()
2268 if (random_get_bytes(keybuf, key_len) < 0) in wpa_ft_gtk_subelem()
2347 if (random_get_bytes(stub_igtk, igtk_len / 8) < 0) { in wpa_ft_igtk_subelem()
2408 if (random_get_bytes(stub_bigtk, bigtk_len / 8) < 0) { in wpa_ft_bigtk_subelem()
3317 if (random_get_bytes(sm->ANonce, WPA_NONCE_LEN)) { in wpa_ft_process_auth_req()
/src/sys/contrib/openzfs/module/os/freebsd/zfs/
H A Dzio_crypt.c250 ret = random_get_bytes((uint8_t *)&key->zk_guid, sizeof (uint64_t)); in zio_crypt_key_init()
254 ret = random_get_bytes(key->zk_master_keydata, keydata_len); in zio_crypt_key_init()
258 ret = random_get_bytes(key->zk_hmac_keydata, SHA512_HMAC_KEYLEN); in zio_crypt_key_init()
262 ret = random_get_bytes(key->zk_salt, ZIO_DATA_SALT_LEN); in zio_crypt_key_init()
311 ret = random_get_bytes(salt, ZIO_DATA_SALT_LEN); in zio_crypt_key_change_salt()
571 ret = random_get_bytes(key->zk_salt, ZIO_DATA_SALT_LEN); in zio_crypt_key_unwrap()
/src/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()
/src/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()
/src/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.c410 if (random_get_bytes(iv, block_size) < 0) in wps_build_encr_settings()
/src/contrib/wpa/wpa_supplicant/
H A Dmesh_rsn.c202 if (random_get_bytes(rsn->mgtk, rsn->mgtk_len) < 0) in __mesh_rsn_auth_init()
208 if (random_get_bytes(rsn->igtk, rsn->igtk_len) < 0) in __mesh_rsn_auth_init()
537 if (random_get_bytes(sta->my_nonce, WPA_NONCE_LEN) < 0) { in mesh_rsn_init_ampe_sta()
/src/sys/contrib/openzfs/module/os/linux/zfs/
H A Dzio_crypt.c255 ret = random_get_bytes((uint8_t *)&key->zk_guid, sizeof (uint64_t)); in zio_crypt_key_init()
259 ret = random_get_bytes(key->zk_master_keydata, keydata_len); in zio_crypt_key_init()
263 ret = random_get_bytes(key->zk_hmac_keydata, SHA512_HMAC_KEYLEN); in zio_crypt_key_init()
267 ret = random_get_bytes(key->zk_salt, ZIO_DATA_SALT_LEN); in zio_crypt_key_init()
321 ret = random_get_bytes(salt, ZIO_DATA_SALT_LEN); in zio_crypt_key_change_salt()
614 ret = random_get_bytes(key->zk_salt, ZIO_DATA_SALT_LEN); in zio_crypt_key_unwrap()
/src/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.c67 if (random_get_bytes(conn->client_random + 4, TLS_RANDOM_LEN - 4)) { in tls_send_client_hello()
351 if (random_get_bytes(csecret, csecret_len)) { in tlsv1_key_x_dh()
/src/contrib/wpa/src/eap_peer/
H A Deap_mschapv2.c201 } else if (random_get_bytes(peer_challenge, MSCHAPV2_CHAL_LEN)) { in eap_mschapv2_challenge_reply()
587 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()
/src/contrib/wpa/src/common/
H A Ddpp_auth.c444 if (random_get_bytes(auth->r_nonce, nonce_len)) { in dpp_auth_build_resp_ok()
452 if (random_get_bytes(auth->r_nonce, nonce_len)) { in dpp_auth_build_resp_ok()
1203 if (random_get_bytes(auth->i_nonce, nonce_len)) { in dpp_auth_init()
1211 if (random_get_bytes(auth->i_nonce, nonce_len)) { in dpp_auth_init()
/src/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()

123