| /freebsd/contrib/wpa/src/crypto/ |
| H A D | random.h | 16 #define random_get_bytes(b, l) os_get_random((b), (l)) macro 23 int random_get_bytes(void *buf, size_t len);
|
| H A D | random.c | 159 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/sys/cddl/compat/opensolaris/sys/ |
| H A D | random.h | 32 #define random_get_bytes(p, s) read_random((p), (int)(s)) macro
|
| /freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/ |
| H A D | random.h | 32 random_get_bytes(uint8_t *ptr, size_t len) in random_get_bytes() function
|
| /freebsd/sys/contrib/openzfs/lib/libspl/include/sys/ |
| H A D | random.h | 22 extern int random_get_bytes(uint8_t *ptr, size_t len);
|
| /freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
| H A D | random.h | 37 random_get_bytes(uint8_t *p, size_t s) in random_get_bytes() function
|
| /freebsd/sys/contrib/openzfs/lib/libspl/ |
| H A D | random.c | 80 random_get_bytes(uint8_t *ptr, size_t len) in random_get_bytes() function
|
| /freebsd/contrib/wpa/src/ap/ |
| H A D | comeback_token.c | 89 if (random_get_bytes(comeback_key, COMEBACK_KEY_SIZE) < 0) in auth_build_token_req()
|
| H A D | wpa_auth.c | 518 if (random_get_bytes(wpa_auth->group->GMK, WPA_GMK_LEN)) { in wpa_rekey_gmk() 718 if (random_get_bytes(group->GMK, WPA_GMK_LEN) < 0) in wpa_group_init_gmk_and_counter() 734 if (random_get_bytes(rkey, sizeof(rkey)) < 0) in wpa_group_init_gmk_and_counter() 2087 if (random_get_bytes(pos, gtk_len) < 0) 2236 random_get_bytes(key->key_id, sizeof(key->key_id)) < 0) 2792 if (random_get_bytes(sm->ANonce, WPA_NONCE_LEN)) { 2810 if (random_get_bytes(sm->ANonce, WPA_NONCE_LEN)) { 3642 if (random_get_bytes(stub_gtk, gtk_len) < 0) { 4323 if (random_get_bytes(igtk.igtk, len) < 0) 5160 if (random_get_bytes(stub_gtk, gtk_len) < 0) [all …]
|
| /freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
| H A D | zio_crypt.c | 246 ret = random_get_bytes((uint8_t *)&key->zk_guid, sizeof (uint64_t)); in zio_crypt_key_init() 250 ret = random_get_bytes(key->zk_master_keydata, keydata_len); in zio_crypt_key_init() 254 ret = random_get_bytes(key->zk_hmac_keydata, SHA512_HMAC_KEYLEN); in zio_crypt_key_init() 258 ret = random_get_bytes(key->zk_salt, ZIO_DATA_SALT_LEN); in zio_crypt_key_init() 307 ret = random_get_bytes(salt, ZIO_DATA_SALT_LEN); in zio_crypt_key_change_salt() 567 ret = random_get_bytes(key->zk_salt, ZIO_DATA_SALT_LEN); in zio_crypt_key_unwrap()
|
| /freebsd/contrib/wpa/src/eap_common/ |
| H A D | eap_eke_common.c | 361 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/contrib/wpa/src/eap_server/ |
| H A D | eap_server_md5.c | 50 if (random_get_bytes(data->challenge, CHALLENGE_LEN)) { in eap_md5_buildReq()
|
| H A D | ikev2.c | 1097 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()
|
| /freebsd/contrib/wpa/src/wps/ |
| H A D | wps_common.c | 246 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 D | wps_enrollee.c | 41 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 D | wps_attr_build.c | 410 if (random_get_bytes(iv, block_size) < 0) in wps_build_encr_settings()
|
| /freebsd/contrib/wpa/wpa_supplicant/ |
| H A D | mesh_rsn.c | 202 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() 538 if (random_get_bytes(sta->my_nonce, WPA_NONCE_LEN) < 0) { in mesh_rsn_init_ampe_sta()
|
| /freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
| H A D | zio_crypt.c | 251 ret = random_get_bytes((uint8_t *)&key->zk_guid, sizeof (uint64_t)); in zio_crypt_key_init() 255 ret = random_get_bytes(key->zk_master_keydata, keydata_len); in zio_crypt_key_init() 259 ret = random_get_bytes(key->zk_hmac_keydata, SHA512_HMAC_KEYLEN); in zio_crypt_key_init() 263 ret = random_get_bytes(key->zk_salt, ZIO_DATA_SALT_LEN); in zio_crypt_key_init() 317 ret = random_get_bytes(salt, ZIO_DATA_SALT_LEN); in zio_crypt_key_change_salt() 610 ret = random_get_bytes(key->zk_salt, ZIO_DATA_SALT_LEN); in zio_crypt_key_unwrap()
|
| /freebsd/contrib/wpa/src/tls/ |
| H A D | tlsv1_server_write.c | 60 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 D | tlsv1_client_write.c | 67 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()
|
| /freebsd/contrib/wpa/src/eap_peer/ |
| H A D | eap_mschapv2.c | 201 } 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 D | eap_leap.c | 169 if (random_get_bytes(pos, LEAP_CHALLENGE_LEN)) { in eap_leap_process_success()
|
| H A D | eap_psk.c | 129 if (random_get_bytes(data->rand_p, EAP_PSK_RAND_LEN)) { in eap_psk_process_1()
|
| /freebsd/contrib/wpa/src/common/ |
| H A D | dpp_auth.c | 444 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()
|
| /freebsd/contrib/wpa/hostapd/ |
| H A D | hlr_auc_gw.c | 620 if (random_get_bytes(_rand, 16) < 0) in sim_req_auth() 751 if (random_get_bytes(_rand, EAP_AKA_RAND_LEN) < 0) in aka_req_auth()
|